r1002 - trunk/ui

r1002 - trunk/ui


Author: paul.bakaus
Date: Mon Nov 24 05:48:50 2008
New Revision: 1002
Modified:
trunk/ui/ui.sortable.js
Log:
sortable: Another regex for the innerHTML copying in the placeholder,
removes the expando attribute in IE (fixes #3541)
Modified: trunk/ui/ui.sortable.js
==============================================================================
--- trunk/ui/ui.sortable.js    (original)
+++ trunk/ui/ui.sortable.js    Mon Nov 24 05:48:50 2008
@@ -646,7 +646,9 @@
                    if(!className) {
                        el.style.visibility = "hidden";
                        document.body.appendChild(el);
-                        el.innerHTML =
self.currentItem[0].innerHTML.replace(/name\=\"[^\"\']+\"/g, ''); //Name
attributes are removed, otherwice causes elements to be unchecked
+                        // Name attributes are removed, otherwice causes elements to be
unchecked
+                        // Expando attributes also have to be removed because of stupid IE
(no condition, doesn't hurt in other browsers)
+                        el.innerHTML =
self.currentItem[0].innerHTML.replace(/name\=\"[^\"\']+\"/g, '').replace(/jQuery[0-9]+\=\"[^\"\']+\"/g, '');
                        document.body.removeChild(el);
                    };