From 8749410b1033ddec1207ce1db42d1889a0d2ea33 Mon Sep 17 00:00:00 2001 From: "Lucas Perais (lpe)" Date: Wed, 2 Aug 2017 17:31:06 +0200 Subject: [PATCH] [FIX] website: correctly renders iframe for videos Before this commit, the iframe tags were sanitized as the should, but never spawn back from JS. Now, the iframe is actually created opw 750830 Closes #18643 --- addons/website/static/src/js/website.snippets.animation.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/addons/website/static/src/js/website.snippets.animation.js b/addons/website/static/src/js/website.snippets.animation.js index 5de8d9ce1ac..644b6b3aa1c 100644 --- a/addons/website/static/src/js/website.snippets.animation.js +++ b/addons/website/static/src/js/website.snippets.animation.js @@ -134,8 +134,9 @@ animation.registry.media_video = animation.Class.extend({ if (!this.$target.has('.media_iframe_video_size').length) { var editor = '
 
'; var size = '
 
'; - this.$target.html(editor+size+''); + this.$target.html(editor+size); } + this.$target.html(this.$target.html()+''); }, });