mirror of
https://github.com/silverstripe/silverstripe-widgets
synced 2024-10-22 17:05:54 +02:00
Removed background on the widgets (makes them harder to read)
Removed references to NoWidgets in WidgetAreaEditor
This commit is contained in:
parent
5ade9048ca
commit
502c441c9d
@ -35,7 +35,7 @@ div.availableWidgets div.Widget {
|
|||||||
border: 1px solid #ddd;
|
border: 1px solid #ddd;
|
||||||
border-top: none;
|
border-top: none;
|
||||||
margin-bottom: 10px;
|
margin-bottom: 10px;
|
||||||
background: #F0F3F4 url('../../cms/images/textures/bg_cms_main_content.png') repeat top left;
|
background: #F0F3F4;
|
||||||
}
|
}
|
||||||
|
|
||||||
div.widgetDescription{
|
div.widgetDescription{
|
||||||
|
@ -125,11 +125,6 @@
|
|||||||
},
|
},
|
||||||
|
|
||||||
insertWidgetEditor: function(response) {
|
insertWidgetEditor: function(response) {
|
||||||
// Remove placeholder text
|
|
||||||
if($('#NoWidgets-'+$(this).attr('name')).length>0) {
|
|
||||||
$('#NoWidgets-'+$(this).attr('name')).remove();
|
|
||||||
}
|
|
||||||
|
|
||||||
var usedWidgets = $('#usedWidgets-'+$(this).attr('name')).children();
|
var usedWidgets = $('#usedWidgets-'+$(this).attr('name')).children();
|
||||||
|
|
||||||
// Give the widget a unique id
|
// Give the widget a unique id
|
||||||
@ -161,7 +156,6 @@
|
|||||||
deleteWidget: function(widgetToRemove) {
|
deleteWidget: function(widgetToRemove) {
|
||||||
// Remove a widget from the used widgets column
|
// Remove a widget from the used widgets column
|
||||||
widgetToRemove.remove();
|
widgetToRemove.remove();
|
||||||
// TODO ... re-create NoWidgets div?
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user