[FIX] website snippet: fix drop widget

bzr revid: chm@openerp.com-20131127143119-zlp7iytxexznfrt6
This commit is contained in:
Christophe Matthieu
2013-11-27 15:31:19 +01:00
parent 3bb30b1337
commit 5304a26eb0
@@ -324,14 +324,12 @@
}
},
out: function(){
if( action === 'insert'){
var prev = $toInsert.prev();
if( action === 'insert' && prev && this != prev[0]){
dropped = false;
$toInsert.detach();
}
},
drop: function(){
dropped = true;
},
}
});
},
stop: function(ev, ui){