diff options
| author | qsm-odoo <qsm@odoo.com> | 2017-10-19 11:58:18 +0200 |
|---|---|---|
| committer | qsm-odoo <qsm@odoo.com> | 2017-10-19 17:53:59 +0200 |
| commit | d49983b23dd5ff12382d5c9eaa47291822ea42a7 (patch) | |
| tree | 59c32be35886c46d18f325265f2d7f6a89f9c7ca /addons/web_editor/static/src/js | |
| parent | 2c829870f12c969c43782ae88ea2c140eb8ca37c (diff) | |
[FIX] web_editor: open link dialog on dblclick on real links
When double-clicking on a link/button, the link dialog is opened. The
problem was that the "btn" class is sometimes used on non-link elements.
While this should not be, the editor can easily be adapted to this.
Diffstat (limited to 'addons/web_editor/static/src/js')
| -rw-r--r-- | addons/web_editor/static/src/js/rte.summernote.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/web_editor/static/src/js/rte.summernote.js b/addons/web_editor/static/src/js/rte.summernote.js index a3bf079aa30..866d0d68e84 100644 --- a/addons/web_editor/static/src/js/rte.summernote.js +++ b/addons/web_editor/static/src/js/rte.summernote.js @@ -771,7 +771,7 @@ eventHandler.attach = function (oLayoutInfo, options) { * Open Link Dialog on double click on a link/button. * Shows a tooltip on click to say to the user he can double click. */ - create_dblclick_feature("a[href], .btn", function () { + create_dblclick_feature("a[href], a.btn, button.btn", function () { eventHandler.modules.linkDialog.show(oLayoutInfo); }); |
