Skip to content
Permalink
Browse files

sortable: Another regex for the innerHTML copying in the placeholder,…

… removes the expando attribute in IE (fixes #3541)
  • Loading branch information...
Paul Bakaus
Paul Bakaus committed Nov 24, 2008
1 parent 3d87c24 commit 19a7d6bc5bceb82892b063f678740ae09b630973
Showing with 3 additions and 1 deletion.
  1. +3 −1 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);
};

0 comments on commit 19a7d6b

Please sign in to comment.
You can’t perform that action at this time.