r857 - trunk/ui
r857 - trunk/ui
Author: paul.bakaus
Date: Mon Nov 3 05:23:15 2008
New Revision: 857
Modified:
trunk/ui/ui.sortable.js
Log:
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
Modified: trunk/ui/ui.sortable.js
==============================================================================
--- trunk/ui/ui.sortable.js (original)
+++ trunk/ui/ui.sortable.js Mon Nov 3 05:23:15 2008
@@ -790,8 +790,10 @@
}
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);