diff options
| author | Christophe Simonis <chs@odoo.com> | 2018-01-10 20:35:53 +0100 |
|---|---|---|
| committer | Christophe Simonis <chs@odoo.com> | 2018-01-10 20:35:53 +0100 |
| commit | 782154da11975b9db4620d7d39df3b567f3abcdc (patch) | |
| tree | 8cfe110e53ccfcee7a06421d6367b88d51d60add /addons/web_editor/static/src/js/editor | |
| parent | 61bb46c82ba8113dddc0a95bd86cb029fbbf110e (diff) | |
| parent | f6ef0c776096774fc4c6821449ab42cfc2f53e62 (diff) | |
[MERGE] forward port branch saas-11.1 up to f6ef0c77609
Diffstat (limited to 'addons/web_editor/static/src/js/editor')
| -rw-r--r-- | addons/web_editor/static/src/js/editor/snippets.options.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/addons/web_editor/static/src/js/editor/snippets.options.js b/addons/web_editor/static/src/js/editor/snippets.options.js index f6011be282d..6c6a33edb8b 100644 --- a/addons/web_editor/static/src/js/editor/snippets.options.js +++ b/addons/web_editor/static/src/js/editor/snippets.options.js @@ -814,7 +814,9 @@ registry.background = SnippetOption.extend({ var $image = $('<img/>', {class: 'hidden', src: value}).appendTo(this.$target); var _editor = new widget.MediaDialog(this, {}, null, $image[0]).open(); - _editor.$('[href="#editor-media-video"], [href="#editor-media-icon"]').addClass('hidden'); + _editor.opened(function () { + _editor.$('[href="#editor-media-video"], [href="#editor-media-icon"]').addClass('hidden'); + }); _editor.on('save', this, function () { this._setCustomBackground($image.attr('src')); |
