Added placeholder

This commit is contained in:
Ed 2012-06-20 21:13:07 -03:00
parent 4972b44cec
commit b914e09f35
2 changed files with 13 additions and 1 deletions

View File

@ -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' */
} }

View File

@ -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