diff options
| author | qsm-odoo <qsm@odoo.com> | 2018-10-19 09:58:00 +0000 |
|---|---|---|
| committer | qsm-odoo <qsm@odoo.com> | 2018-10-19 09:58:00 +0000 |
| commit | 932fdb4e24e4f187adbe37ba6babe8159fbca39a (patch) | |
| tree | bc2764b3cad5cc96c09d77db2a09c56efa31abf2 | |
| parent | b15470964594ead679e2f20dd30b57956abeb2ec (diff) | |
[FIX] web_editor: hide link buttons duplicates instead of removing them
For example, if primary = alpha, the primary button option is removed
in the link dialog. When editing a primary button, this lead to broken
behaviors. Hiding the button does the trick.
| -rw-r--r-- | addons/web_editor/static/src/js/widgets/widgets.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/web_editor/static/src/js/widgets/widgets.js b/addons/web_editor/static/src/js/widgets/widgets.js index 2c06743b361..0edc1adb9b9 100644 --- a/addons/web_editor/static/src/js/widgets/widgets.js +++ b/addons/web_editor/static/src/js/widgets/widgets.js @@ -1466,7 +1466,7 @@ var LinkDialog = Dialog.extend({ var $btn = $(btn); var color = $btn.css('background-color'); if (_.contains(colors, color)) { - $btn.remove(); + $btn.hide(); // Not remove to be able to edit buttons with those styles } else { colors.push(color); } |
