diff options
author | Paul Bakaus <paul.bakaus@googlemail.com> | 2008-11-24 13:48:50 +0000 |
---|---|---|
committer | Paul Bakaus <paul.bakaus@googlemail.com> | 2008-11-24 13:48:50 +0000 |
commit | 19a7d6bc5bceb82892b063f678740ae09b630973 (patch) | |
tree | 1ef8171b45e7124f85e418259a42e21df1d4c4e5 | |
parent | 3d87c249fce478020df20a6492084d7c95bab863 (diff) | |
download | jquery-ui-19a7d6bc5bceb82892b063f678740ae09b630973.tar.gz jquery-ui-19a7d6bc5bceb82892b063f678740ae09b630973.zip |
sortable: Another regex for the innerHTML copying in the placeholder, removes the expando attribute in IE (fixes #3541)
-rw-r--r-- | ui/ui.sortable.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ui/ui.sortable.js b/ui/ui.sortable.js index 465dd5ea5..d2b337837 100644 --- a/ui/ui.sortable.js +++ b/ui/ui.sortable.js @@ -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); }; |