diff options
| author | Christophe Simonis <chs@odoo.com> | 2019-04-08 17:45:00 +0200 |
|---|---|---|
| committer | Christophe Simonis <chs@odoo.com> | 2019-04-08 17:45:00 +0200 |
| commit | 4c61621efbb079a4298db99d5c0b30b90e072bb9 (patch) | |
| tree | f6734b44a1ea45826be4f7a14191f7aaa3b75846 /addons/web_editor/static/src/js/editor | |
| parent | b3d4c2d178bb3dbb9875271082bc36a80076e649 (diff) | |
| parent | 9a7e3c8b4986fcfecf3699a194e45f5ec94bde6c (diff) | |
[MERGE] forward port branch 11.0 up to 9a7e3c8b498
Diffstat (limited to 'addons/web_editor/static/src/js/editor')
| -rw-r--r-- | addons/web_editor/static/src/js/editor/rte.summernote.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/addons/web_editor/static/src/js/editor/rte.summernote.js b/addons/web_editor/static/src/js/editor/rte.summernote.js index 614ab4bfcf0..fc4241689e7 100644 --- a/addons/web_editor/static/src/js/editor/rte.summernote.js +++ b/addons/web_editor/static/src/js/editor/rte.summernote.js @@ -883,7 +883,10 @@ eventHandler.attach = function (oLayoutInfo, options) { show_tooltip = true; setTimeout(function () { - if (!show_tooltip) return; + // Do not show tooltip on double-click and if there is already one + if (!show_tooltip || $target.attr('title') !== undefined) { + return; + } $target.tooltip({title: _t('Double-click to edit'), trigger: 'manuel', container: 'body'}).tooltip('show'); setTimeout(function () { $target.tooltip('destroy'); |
