summaryrefslogtreecommitdiff
path: root/addons/web_editor/static/src
diff options
context:
space:
mode:
authordbh <dbh@odoo.com>2017-02-10 18:36:08 +0530
committerqsm-odoo <qsm@odoo.com>2017-06-14 17:49:56 +0200
commitc23a3fd9ccfdff69702eb8adf2c44b440bf33707 (patch)
tree175a6e6aa1b4935f861e6d1d2fd114e0397f7945 /addons/web_editor/static/src
parentc083133255f6cc3e38933f8fc777dba91764c083 (diff)
[FIX] web_editor: doubleclick on image in a link
Before this commit, when clicking on an image which is in a link, both the link edition dialog and the image edition dialog were opened. Now only one opens.
Diffstat (limited to 'addons/web_editor/static/src')
-rw-r--r--addons/web_editor/static/src/js/rte.summernote.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/addons/web_editor/static/src/js/rte.summernote.js b/addons/web_editor/static/src/js/rte.summernote.js
index 4ab1e7bed06..8ff0effb86b 100644
--- a/addons/web_editor/static/src/js/rte.summernote.js
+++ b/addons/web_editor/static/src/js/rte.summernote.js
@@ -849,6 +849,7 @@ eventHandler.attach = function (oLayoutInfo, options) {
if ($(e.target).closest(".note-toolbar").length) return; // prevent icon edition of top bar for default summernote
show_tooltip = false;
callback();
+ e.stopImmediatePropagation();
});
oLayoutInfo.editor().on("click", selector, function (e) {