app/assets/javascripts/spina/admin/pages.js.coffee in spina-0.6.24 vs app/assets/javascripts/spina/admin/pages.js.coffee in spina-0.6.25

- old
+ new

@@ -68,14 +68,14 @@ event.preventDefault() # Sort pages $(document).on 'click', '.sort-switch', (event) -> $($(this).attr('href') + ' .dd-item-inner').toggleClass('dd-handle') - if $(this).attr('data-icon') == 'j' - $(this).attr('data-icon', '8') + if $(this).hasClass('button-success') $(this).removeClass('button-success') $(this).text($(this).data('change-order')) + $(this).prepend('<i class="fa fa-random"></i>') else - $(this).attr('data-icon', 'j') $(this).addClass('button-success') $(this).text($(this).data('done-changing-order')) + $(this).prepend('<i class="fa fa-check"></i>') return false