From 41210f45df94340143082782a8bb43227ce3224e Mon Sep 17 00:00:00 2001 From: Christophe Matthieu Date: Fri, 24 Jan 2014 10:34:21 +0100 Subject: [PATCH] [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 --- addons/website/static/src/js/website.snippets.editor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/website/static/src/js/website.snippets.editor.js b/addons/website/static/src/js/website.snippets.editor.js index 7bf540f9c16..8a3e7a4421d 100644 --- a/addons/website/static/src/js/website.snippets.editor.js +++ b/addons/website/static/src/js/website.snippets.editor.js @@ -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);