Skip to content

Commit

Permalink
Merge pull request #86 from mi3ll/fix-no-sortable
Browse files Browse the repository at this point in the history
FIX: Remove sortable only if it has been initialised
  • Loading branch information
nyeholt committed Mar 4, 2015
2 parents ad55ced + a3c549d commit 302f7c0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion javascript/GridFieldExtensions.js
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,9 @@
});
},
onremove: function() {
this.sortable("destroy");
if(this.data('sortable')) {
this.sortable("destroy");
}
}
});

Expand Down

0 comments on commit 302f7c0

Please sign in to comment.