app/assets/javascripts/adminpanel/spinner.js.coffee in adminpanel-2.1.7 vs app/assets/javascripts/adminpanel/spinner.js.coffee in adminpanel-2.2.0
- old
+ new
@@ -1,11 +1,11 @@
-$(document).on 'click', 'a.accordion-toggle', ->
+$(document).on 'click', 'a.spinner-link', ->
$( this ).attr 'data-clicked', true
$(document).on 'page:fetch', ->
- $('a.accordion-toggle[data-clicked="true"]').children('i:first').toggleClass('hidden')
- $('a.accordion-toggle[data-clicked="true"]').prepend '<i class="fa fa-spinner fa-spin"></i>'
+ $('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', ->
- $('a.accordion-toggle[data-clicked="true"]').children('i:first').remove()
- $('a.accordion-toggle[data-clicked="true"]').children('i:first').toggleClass 'hidden'
- $('a.accordion-toggle[data-clicked="true"]').data 'clicked', false
+ $('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"]').data 'clicked', false