# HG changeset patch # User hamidouk # Date 1323093259 -3600 # Node ID 6c4e5b2fee8c41e01276a5197e7f0ea87cbda32c # Parent 375e8af3c9cd610a15e9f0e41c9e7bc179ed3642 fixed typo in varname. diff -r 375e8af3c9cd -r 6c4e5b2fee8c src/js/init.js --- a/src/js/init.js Mon Dec 05 14:37:27 2011 +0100 +++ b/src/js/init.js Mon Dec 05 14:54:19 2011 +0100 @@ -7,21 +7,21 @@ var pop; var ret = layoutManager.createDiv(); var containerDiv = ret[0]; - + var tmpId = Popcorn.guid("video"); + switch(options.type) { /* todo : dynamically create the div/video tag which will contain the video. */ case "html5": - var tmpId = Popcorn.guid("video"); IriSP.jQuery("#" + containerDiv).append(""); if (options.hasOwnProperty("width")) - IriSP.jQuery("#" + containerDiv).css("width", options.width); + IriSP.jQuery("#" + tmpId).css("width", options.width); if (options.hasOwnProperty("height")) - IriSP.jQuery("#" + containerDiv).css("height", options.height); + IriSP.jQuery("#" + tmpId).css("height", options.height); pop = Popcorn("#" + tmpId).mediafragment({start : 0}); break;