]> source.dussan.org Git - jquery-ui.git/commitdiff
sortable: Another regex for the innerHTML copying in the placeholder, removes the...
authorPaul Bakaus <paul.bakaus@googlemail.com>
Mon, 24 Nov 2008 13:48:50 +0000 (13:48 +0000)
committerPaul Bakaus <paul.bakaus@googlemail.com>
Mon, 24 Nov 2008 13:48:50 +0000 (13:48 +0000)
ui/ui.sortable.js

index 465dd5ea54294d9b460e1900261010123bec7df1..d2b337837684ef5639d26041539847279968087c 100644 (file)
@@ -646,7 +646,9 @@ $.widget("ui.sortable", $.extend({}, $.ui.mouse, {
                                        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);
                                        };