app/assets/javascripts/spina/admin/pages.js.coffee.erb in spina-0.9.0 vs app/assets/javascripts/spina/admin/pages.js.coffee.erb in spina-0.10.0
- old
+ new
@@ -16,10 +16,10 @@
$('.structure-form-menu ul').sortable().bind 'sortupdate', (e) ->
$(e.target).find('li').each (index) ->
id = $(this).data('structure-item-id')
$(".structure_form_pane_#{id}_position").val(index)
-$(document).on 'ready page:load', ready
+$(document).on 'turbolinks:load', ready
# Change templates makes page parts appear and disappear
$(document).on 'change', '.page-template select', ->
page_parts = $(this).find('option:selected').data('page-parts').split(" ")
show_page_parts(page_parts)