Skip to content
Snippets Groups Projects
Commit 0a1362a1 authored by Christophe Simonis's avatar Christophe Simonis
Browse files

[FIX] website: video snippet size detection

parent fcd10521
No related branches found
No related tags found
No related merge requests found
......@@ -180,7 +180,7 @@
website.snippet.animationRegistry.media_video = website.snippet.Animation.extend({
selector: ".media_iframe_video",
start: function () {
if (!this.$target.has('.media_iframe_video_size')) {
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+'<iframe src="'+_.escape(this.$target.data("src"))+'" frameborder="0" allowfullscreen="allowfullscreen"></iframe>');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment