diff options
| author | Christophe Matthieu <chm@odoo.com> | 2015-11-04 13:34:32 +0100 |
|---|---|---|
| committer | Christophe Matthieu <chm@odoo.com> | 2015-11-04 16:10:44 +0100 |
| commit | c7ff7cb491274c4c2cedca7e0f02b7ba4fd654ca (patch) | |
| tree | b36beae3da0d80f75ccdc9b3b6f9e3aeca4f1f73 /addons/web_editor/static/src/js/widgets.js | |
| parent | 7228b29cb2dfca8004ef65d41fa588cbed367121 (diff) | |
[FIX] web_editor: remove editor bar flickering when edit a qweb field
Issue: When the user click on a field (like monetary, text...) the editor bar appear and disappear. The undo buton is hidden for this fields.
Diffstat (limited to 'addons/web_editor/static/src/js/widgets.js')
| -rw-r--r-- | addons/web_editor/static/src/js/widgets.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/addons/web_editor/static/src/js/widgets.js b/addons/web_editor/static/src/js/widgets.js index 236b1dc4fc8..6dcd47ee802 100644 --- a/addons/web_editor/static/src/js/widgets.js +++ b/addons/web_editor/static/src/js/widgets.js @@ -603,6 +603,9 @@ rte.Class.include({ $editable.attr('contenteditable', false); $editable.find('.oe_currency_value').attr('contenteditable', true); } + if ($editable.is('[data-oe-model]') && !$editable.is('[data-oe-model="ir.ui.view"]') && !$editable.is('[data-oe-type="html"]')) { + $editable.data('layoutInfo').popover().find('.btn-group:not(.note-history)').remove(); + } }, }); |
