app/assets/javascripts/adminpanel/spinner.js.coffee in adminpanel-3.2.1 vs app/assets/javascripts/adminpanel/spinner.js.coffee in adminpanel-3.3.0
- old
+ new
@@ -1,11 +1,11 @@
$(document).on 'click', 'a.spinner-link', ->
- $( @ ).attr 'data-clicked', true
+ $(@).attr 'data-clicked', true
-$(document).on 'page:fetch', ->
+$(document).on 'turbolinks:click', ->
$('a.spinner-link[data-clicked="true"]').children('i:first').toggleClass('hidden')
$('a.spinner-link[data-clicked="true"]').prepend '<i class="fa fa-spinner fa-spin"></i>'
-$(document).on 'page:restore', ->
+$(document).on 'turbolinks:render', ->
$('a.spinner-link[data-clicked="true"]').children('i:first').remove()
$('a.spinner-link[data-clicked="true"]').children('i:first').toggleClass('hidden')
$('a.spinner-link[data-clicked="true"]').attr 'data-clicked', false