summaryrefslogtreecommitdiff
path: root/addons/website/static/src
diff options
context:
space:
mode:
authorChristophe Simonis <chs@odoo.com>2017-11-30 15:27:59 +0100
committerChristophe Simonis <chs@odoo.com>2017-11-30 15:27:59 +0100
commitab084d580ff0edf9be1d12cec87aeffdd84459b7 (patch)
tree6a19b4656315d94b65c88507bb471ac56d16f3ed /addons/website/static/src
parent3f66814a0d01a81bef5456a07da4b1ac8e2281e7 (diff)
parent98539336a5d40de748764ff0a3c16d8cda77b02f (diff)
[MERGE] forward port branch saas-15 up to 98539336a5d
Diffstat (limited to 'addons/website/static/src')
-rw-r--r--addons/website/static/src/js/website.snippets.animation.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/addons/website/static/src/js/website.snippets.animation.js b/addons/website/static/src/js/website.snippets.animation.js
index d0547dcf9db..1213b986472 100644
--- a/addons/website/static/src/js/website.snippets.animation.js
+++ b/addons/website/static/src/js/website.snippets.animation.js
@@ -413,7 +413,11 @@ animation.registry.share = animation.Class.extend({
animation.registry.media_video = animation.Class.extend({
selector: ".media_iframe_video",
start: function () {
- if (!this.$target.has('> iframe').length) {
+ // TODO: this code should be refactored to make more sense and be better
+ // integrated with Odoo (this refactoring should be done in master).
+ this.$target.find('iframe').remove();
+
+ if (!this.$target.has('.media_iframe_video_size').length) {
var editor = '<div class="css_editable_mode_display">&nbsp;</div>';
var size = '<div class="media_iframe_video_size">&nbsp;</div>';
this.$target.html(editor+size);