diff options
| author | qsm-odoo <qsm@odoo.com> | 2016-08-29 15:47:13 +0200 |
|---|---|---|
| committer | qsm-odoo <qsm@odoo.com> | 2016-08-29 18:50:51 +0200 |
| commit | ca01e7d7c50380fa4cb1fc13f13c146c9170b1ee (patch) | |
| tree | a76458f6087b40011ea351ba3d5b4a57d81989e7 /addons/web_editor/static/src | |
| parent | 63a3c43be7888038d8fc629dba8a31e325dd6062 (diff) | |
[FIX] web_editor: change margin and resize handle icons on focus
The feature was lost because of a programmation error (use of this in
a non-binded function).
Diffstat (limited to 'addons/web_editor/static/src')
| -rw-r--r-- | addons/web_editor/static/src/js/snippets.editor.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/web_editor/static/src/js/snippets.editor.js b/addons/web_editor/static/src/js/snippets.editor.js index 3e01f825b48..bfaeec3975a 100644 --- a/addons/web_editor/static/src/js/snippets.editor.js +++ b/addons/web_editor/static/src/js/snippets.editor.js @@ -1116,7 +1116,7 @@ data.Editor = Class.extend({ var $style_button = this.$overlay.find(".oe_options"); var $ul = $style_button.find("ul:first"); var $headers = $ul.find(".dropdown-header:data(editor)"); - _.each($headers, function (el) { + _.each($headers, (function (el) { var $el = $(el); var styles = _.values($el.data("editor").styles); if ($el.data("editor") !== this) { @@ -1125,7 +1125,7 @@ data.Editor = Class.extend({ _.each(_.sortBy(styles, "__order").reverse(), function (style) { do_action(style, $el); }); - }); + }).bind(this)); // Activate the overlay $style_button.toggleClass("hidden", $ul.children(":not(.dropdown-header):not(.divider):not(.hidden)").length === 0); |
