[FIX] website snippet: drag and drop alert
bzr revid: chm@openerp.com-20130920091917-2oda9p724o0t3yz2
This commit is contained in:
@@ -307,7 +307,7 @@
|
||||
'top': $tumb.outerHeight()/2
|
||||
},
|
||||
start: function(){
|
||||
self.addClass("hidden");
|
||||
self.hide();
|
||||
dropped = false;
|
||||
var snipped_id = $snippet.data('snippet-id');
|
||||
var action = $snippet.find('.oe_snippet_body').size() ? 'insert' : 'mutate';
|
||||
@@ -344,11 +344,13 @@
|
||||
$('.oe_drop_zone').droppable({
|
||||
over: function(){
|
||||
if( action === 'insert'){
|
||||
dropped = true;
|
||||
$(this).first().after($toInsert);
|
||||
}
|
||||
},
|
||||
out: function(){
|
||||
if( action === 'insert'){
|
||||
dropped = false;
|
||||
$toInsert.detach();
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user