allow dragging on the widget's label if available

This commit is contained in:
jean-emmanuel 2016-03-18 08:48:47 +01:00
parent e29ea9702c
commit f1e384ecc2
3 changed files with 3 additions and 3 deletions

View file

@ -223,7 +223,7 @@ var editObject = function(container, data, refresh){
ui.helper.remove()
updateDom(container,data)
},
handle:'.ui-draggable-handle',
handle:'.ui-draggable-handle, > .label',
snap:'.widget',
snapTolerance:5,
helper:function(){return $('<div class="ui-helper"></div>').css({height:container.outerHeight(),width:container.outerWidth()})}