BUGFIX: #3174 - Unable to drop widgets into widget areas in CMS (marcink)

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.3@67587 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Andrew O'Neil 2008-12-07 21:48:05 +00:00 committed by Sam Minnee
parent 5b356e8617
commit df217369da

View File

@ -84,7 +84,7 @@ WidgetAreaEditor.prototype = {
widget.innerHTML = response.responseText.replace(/Widget\[0\]/gi, "Widget[new-" + (++$('WidgetAreaEditor_usedWidgets').parentNode.parentNode.maxid) + "]");
// Replace the available widget with the used widget with editor form
widget.parentNode.insertBefore(widget.childNodes[0], widget);
widget.parentNode.insertBefore($(widget).getElementsByClassName('Widget')[0], widget);
widget.parentNode.removeChild(widget);
// Put the clone into the available widgets column