[FIX] website snippet: When you click on the drag and drop arrow of a block without actually dragging, you shouldn't go to the top of the page.
bzr revid: chm@openerp.com-20140124093421-o1rhe3p44ewwek9u
This commit is contained in:
parent
8c5dda2480
commit
41210f45df
|
@ -375,7 +375,7 @@
|
|||
});
|
||||
},
|
||||
stop: function(ev, ui){
|
||||
if (action === 'insert' && ! dropped && $('.oe_drop_zone')) {
|
||||
if (action === 'insert' && ! dropped && $('.oe_drop_zone') && ui.position.top > 50) {
|
||||
var el = $('.oe_drop_zone').nearest({x: ui.position.left, y: ui.position.top}).first();
|
||||
if (el.length) {
|
||||
el.after($toInsert);
|
||||
|
|
Loading…
Reference in New Issue