Skip to content

Commit

Permalink
BUGFIX WidgetAreaEditor shouldn't ever call editable segment "NoWidge…
Browse files Browse the repository at this point in the history
…ts" - this is just a placeholder

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.3@78496 467b73ca-7a2a-4603-9d3b-597d59a354a9
  • Loading branch information
Sean Harvey authored and Sam Minnee committed Feb 2, 2011
1 parent 44e5b0a commit a82a320
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion javascript/WidgetAreaEditor.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ WidgetAreaEditorClass.prototype = {
var usedWidgets = $('WidgetAreaEditor_usedWidgets').childNodes;
for(var i = 0; i < usedWidgets.length; i++) {
var widget = usedWidgets[i];
if(widget.id && (widget.id.indexOf("Widget[") != 0)) {
if(widget.id && (widget.id.indexOf("Widget[") != 0) && (widget.id != 'NoWidgets')) {
new Ajax.Request('Widget_Controller/EditableSegment/' + widget.id, {onSuccess : $('WidgetAreaEditor_usedWidgets').parentNode.parentNode.insertWidgetEditor.bind(this)});
}
}
Expand Down

0 comments on commit a82a320

Please sign in to comment.