mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
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:
parent
5b356e8617
commit
df217369da
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user