Merge pull request #86 from mi3ll/fix-no-sortable

FIX: Remove sortable only if it has been initialised
This commit is contained in:
Marcus 2015-03-04 12:28:24 +11:00
commit 302f7c0dc1

View File

@ -205,8 +205,10 @@
});
},
onremove: function() {
if(this.data('sortable')) {
this.sortable("destroy");
}
}
});
$(".ss-gridfield-orderable .ss-gridfield-previouspage, .ss-gridfield-orderable .ss-gridfield-nextpage").entwine({