Skip to content

Commit

Permalink
FIX: Don't try to remove sortable if it doesn't exist in the first place
Browse files Browse the repository at this point in the history
  • Loading branch information
Mellisa Hankins committed Mar 3, 2015
1 parent ad55ced commit fe63b4a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion javascript/GridFieldExtensions.js
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,8 @@
});
},
onremove: function() {
this.sortable("destroy");
if(this.data('sortable'))
this.sortable("destroy");
}
});

Expand Down

0 comments on commit fe63b4a

Please sign in to comment.