mirror of
https://github.com/symbiote/silverstripe-gridfieldextensions.git
synced 2024-10-22 15:05:39 +00:00
Merge pull request #86 from mi3ll/fix-no-sortable
FIX: Remove sortable only if it has been initialised
This commit is contained in:
commit
302f7c0dc1
@ -205,7 +205,9 @@
|
||||
});
|
||||
},
|
||||
onremove: function() {
|
||||
this.sortable("destroy");
|
||||
if(this.data('sortable')) {
|
||||
this.sortable("destroy");
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user