[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.
This commit is contained in:
qsm-odoo
2017-10-19 17:53:59 +02:00
parent 2c829870f1
commit d49983b23d
@@ -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);
});