diff options
| author | Christophe Simonis <chs@odoo.com> | 2018-01-10 11:41:35 +0100 |
|---|---|---|
| committer | Christophe Simonis <chs@odoo.com> | 2018-01-10 11:41:35 +0100 |
| commit | 228ecdbe28246b0031a9cf7e63b90f4ae11131df (patch) | |
| tree | 33a3c3807c98ee79352abce486decd365e33b1b9 /addons/web_editor/static/src/js | |
| parent | 8270b212909de5cb26e958c023a4f0a27947eeef (diff) | |
| parent | ff0abd214c89dce19984ed0f3c72ea556e23da01 (diff) | |
[MERGE] forward port branch 11.0 up to ff0abd214c8
Diffstat (limited to 'addons/web_editor/static/src/js')
| -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 e1f69e0f889..38dcacf9e77 100644 --- a/addons/web_editor/static/src/js/editor/snippets.options.js +++ b/addons/web_editor/static/src/js/editor/snippets.options.js @@ -873,7 +873,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')); |
