Commit 07bf3106

mo khan <mo@mokhan.ca>
2014-08-24 20:14:16
add each page to the push state so back links take you back to the correct page.
1 parent 9ea70ba
Changed files (1)
app
views
creations
app/views/creations/index.js.erb
@@ -1,2 +1,3 @@
 $('#more-button-row').remove()
 $('#bakery').append('<%= j render partial: 'index' %>');
+history.pushState({ }, "page <%= params[:page] %>", "<%= creations_path(page: params[:page]) %>");