app/views/pages_cms/admin/pages/edit.html.haml in pages_cms-0.1.0 vs app/views/pages_cms/admin/pages/edit.html.haml in pages_cms-0.1.1
- old
+ new
@@ -34,14 +34,9 @@
:javascript
$( document ).ready(function() {
$('.sortable').sortable({items: '.nested-fields', handle: 'span'});
});
- $('.sortable').sortable().bind('sortupdate', function(e, ui) {
- $('.block-order').each(function(i){
- $(this).val(i+1);
- })
- });
window.setInterval(function(){
$('.block-order').each(function(i){
$(this).val(i+1);
})
}, 500);
\ No newline at end of file