From 0e16fcf1e865a6ea553265e202ed54b6935c54f4 Mon Sep 17 00:00:00 2001 From: Paul Bakaus Date: Mon, 3 Nov 2008 13:23:15 +0000 Subject: sortable: all events of the inner nodes of the sortable item were unbound after the sort (this is related to remove() in jQuery, bugfix is not to use remove()), fixes #3488 --- ui/ui.sortable.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ui/ui.sortable.js b/ui/ui.sortable.js index af48588d5..f9777ddc5 100644 --- a/ui/ui.sortable.js +++ b/ui/ui.sortable.js @@ -790,8 +790,10 @@ $.widget("ui.sortable", $.extend({}, $.ui.mouse, { } this._propagate("beforeStop", e, null, noPropagation); - - this.placeholder.remove(); + + //$(this.placeholder[0]).remove(); would have been the jQuery way - unfortunately, it unbinds ALL events from the original node! + this.placeholder[0].parentNode.removeChild(this.placeholder[0]); + if(this.options.helper != "original") this.helper.remove(); this.helper = null; this._propagate("stop", e, null, noPropagation); -- cgit v1.2.3