changing http:// to // on intro video urls to prevent browsers from blocking video embeds

This commit is contained in:
Giulio Gratta
2013-08-09 09:24:17 -07:00
parent 6b16ef0adf
commit 464141c72a
3 changed files with 3 additions and 3 deletions

View File

@@ -75,7 +75,7 @@ CMS.Models.Settings.CourseDetails = Backbone.Model.extend({
return this.videosourceSample();
},
videosourceSample : function() {
if (this.has('intro_video')) return "http://www.youtube.com/embed/" + this.get('intro_video');
if (this.has('intro_video')) return "//www.youtube.com/embed/" + this.get('intro_video');
else return "";
}
});