|
|
|
@ -32,7 +32,7 @@ define('admin/extend/widgets', ['jqueryui'], function(jqueryui) {
|
|
|
|
|
|
|
|
|
|
$('#widgets .available-widgets .widget-panel').draggable({
|
|
|
|
|
helper: function(e) {
|
|
|
|
|
return $(e.target).parents('.widget-panel').clone().addClass('block').width($(e.target.parentNode).width());
|
|
|
|
|
return $(e.target).parents('.widget-panel').clone();
|
|
|
|
|
},
|
|
|
|
|
distance: 10,
|
|
|
|
|
connectToSortable: ".widget-area"
|
|
|
|
@ -156,7 +156,7 @@ define('admin/extend/widgets', ['jqueryui'], function(jqueryui) {
|
|
|
|
|
|
|
|
|
|
function appendToggle(el) {
|
|
|
|
|
if (!el.hasClass('block')) {
|
|
|
|
|
el.addClass('block')
|
|
|
|
|
el.addClass('block').css('width', '').css('height', '')
|
|
|
|
|
.droppable({
|
|
|
|
|
accept: '[data-container-html]',
|
|
|
|
|
drop: function(event, ui) {
|
|
|
|
|