app/assets/javascripts/adminpanel/spinner.js.coffee in adminpanel-2.1.2 vs app/assets/javascripts/adminpanel/spinner.js.coffee in adminpanel-2.1.3
- old
+ new
@@ -1,11 +1,11 @@
$(document).on 'click', 'a.accordion-toggle', ->
- $( this ).attr('data-clicked', true)
+ $( 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.accordion-toggle[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"]').attr 'data-clicked', false
+ $('a.accordion-toggle[data-clicked="true"]').data 'clicked', false