mirror of
https://github.com/silverstripe/silverstripe-widgets
synced 2024-10-22 15:05:54 +00:00
Added placeholder
This commit is contained in:
parent
4972b44cec
commit
b914e09f35
@ -15,6 +15,16 @@ div.usedWidgetsHolder {
|
|||||||
float: right;
|
float: right;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
div.usedWidgets .ui-state-highlight {
|
||||||
|
background: #EEEEEE;
|
||||||
|
|
||||||
|
border: 1px solid #DDDDDD;
|
||||||
|
|
||||||
|
width: 98%;
|
||||||
|
|
||||||
|
margin-bottom: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
.NoWidgets {
|
.NoWidgets {
|
||||||
padding: 50px; /* Make this nice and big and easily 'droppable' */
|
padding: 50px; /* Make this nice and big and easily 'droppable' */
|
||||||
}
|
}
|
||||||
|
@ -20,7 +20,9 @@
|
|||||||
$(this).find('.usedWidgets').sortable({
|
$(this).find('.usedWidgets').sortable({
|
||||||
opacity: 0.6,
|
opacity: 0.6,
|
||||||
handle: '.handle',
|
handle: '.handle',
|
||||||
update: function(e, ui) {parentRef.updateWidgets(e, ui)}
|
update: function(e, ui) {parentRef.updateWidgets(e, ui)},
|
||||||
|
placeholder: 'ui-state-highlight',
|
||||||
|
forcePlaceholderSize: true
|
||||||
});
|
});
|
||||||
|
|
||||||
// Figure out maxid, this is used when creating new widgets
|
// Figure out maxid, this is used when creating new widgets
|
||||||
|
Loading…
x
Reference in New Issue
Block a user