diff --git a/css/WidgetAreaEditor.css b/css/WidgetAreaEditor.css index e1523d13..9f2bf54a 100644 --- a/css/WidgetAreaEditor.css +++ b/css/WidgetAreaEditor.css @@ -12,12 +12,16 @@ div.usedWidgetsHolder { } div.usedWidgets { - min-height: 100px; + border: 1px #CCC dotted; + padding: 5px; +} +#NoWidgets { + padding: 50px; /* Make this nice and big and easily 'droppable' */ } div.usedWidgets div.Widget, div.availableWidgets div.Widget { - width: 90%; + width: 98%; border: 1px solid #ddd; border-top: none; margin-bottom: 5px; diff --git a/javascript/WidgetAreaEditor.js b/javascript/WidgetAreaEditor.js index 41edbf67..d3b6b685 100644 --- a/javascript/WidgetAreaEditor.js +++ b/javascript/WidgetAreaEditor.js @@ -61,7 +61,7 @@ WidgetAreaEditor.prototype = { for(var i = 0; i < usedWidgets.length; i++) { var widget = usedWidgets[i]; if(widget.id && (widget.id.indexOf("Widget[") != 0)) { - new Ajax.Request(widget.id + "/EditableSegment", {onSuccess : $('WidgetAreaEditor_usedWidgets').parentNode.parentNode.insertWidgetEditor.bind(this)}); + new Ajax.Request('Widget_Controller/EditableSegment/' + widget.id, {onSuccess : $('WidgetAreaEditor_usedWidgets').parentNode.parentNode.insertWidgetEditor.bind(this)}); } } }, diff --git a/templates/WidgetAreaEditor.ss b/templates/WidgetAreaEditor.ss index 2c002f5b..7defcdc5 100644 --- a/templates/WidgetAreaEditor.ss +++ b/templates/WidgetAreaEditor.ss @@ -2,6 +2,7 @@
<% _t('TOADD', 'To add widgets, drag them from the left area to here.') %>
+<% _t('TOADD', 'To add widgets, drag them from the left area to here.') %>
-