mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
BUGFIX: IE does not accept TD element without a table, repacking into DIV (open #5228)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.4@101602 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
c8945d9819
commit
ba3fbe101b
@ -217,13 +217,13 @@ Object.extend( SubsDraggable.prototype , {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
// gets element that should be dragged instead of original element
|
// Creates drag element by copying the content into DIV wrapper (IE does not like TD outside of tables)
|
||||||
// returned element should be added to DOM tree, and will be deleted by dragdrop library
|
// The drag element will be deleted by dragdrop library.
|
||||||
function getDragElement(element){
|
function getDragElement(element){
|
||||||
var el = element.cloneNode(true);
|
wrap = document.createElement('div');
|
||||||
el.id = '';
|
wrap.innerHTML = element.innerHTML;
|
||||||
document.body.appendChild(el);
|
document.body.appendChild(wrap);
|
||||||
return el;
|
return wrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Set up DRAG handle
|
// Set up DRAG handle
|
||||||
|
Loading…
Reference in New Issue
Block a user