[FIX] website snippet: drag and drop alert

bzr revid: chm@openerp.com-20130920091917-2oda9p724o0t3yz2
This commit is contained in:
Christophe Matthieu
2013-09-20 11:19:17 +02:00
parent 31e671c192
commit 704449700e
@@ -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();
}
},