diff -r d777d05a16e4 -r 38b65761a7d5 src/js/init.js --- a/src/js/init.js Thu Apr 19 19:20:41 2012 +0200 +++ b/src/js/init.js Fri Apr 20 19:13:11 2012 +0200 @@ -40,7 +40,7 @@ /* widget specific requirements */ for(var _i = 0; _i < this.config.gui.widgets.length; _i++) { - if(this.config.gui.widgets[_i].type === "PolemicWidget" || this.config.gui.widgets[_i].type === "StackGraphWidget" || this.config.gui.widgets[_i].type === "SparklineWidget") { + if(this.config.gui.widgets[_i].type === "StackGraphWidget" || this.config.gui.widgets[_i].type === "SparklineWidget") { $L.script(IriSP.getLib("raphael")); } if(this.config.gui.widgets[_i].type === "TraceWidget") { @@ -104,10 +104,8 @@ } IriSP.Metadataplayer.prototype.onVideoDataLoaded = function() { - console.log("Video Data Loaded"); if (typeof this.videoData !== "undefined" && typeof this.config.player.video === "undefined") { var _media = this.videoData.currentMedia; - console.log(_media); if (typeof _media !== "undefined") { this.config.player.video = _media.video; if (typeof _media.streamer !== "undefined") { @@ -119,13 +117,12 @@ } this.configurePopcorn(); this.widgets = []; - console.log("Now instantiating widgets"); for(var i = 0; i < this.config.gui.widgets.length; i++) { var _widget = this.config.gui.widgets[i]; if (typeof IriSP[_widget.type] !== "undefined") { this.widgets.push(new IriSP[_widget.type](this, _widget)); } else { - console.log("Error, Call to Undefined Widget Type"); + console.log("Error, Call to Undefined Widget Type : "+_widget.type); } }; this.$.find('.Ldt-loader').detach(); @@ -137,13 +134,6 @@ containerDiv = ret[0], spacerDiv = ret[1]; - /* insert one pixel of margin between the video and the first widget, - * using the spacer. - */ - IriSP.jQuery("#" + spacerDiv).css("height", Math.max(1, this.config.gui.spacer_div_height) + "px"); - - console.log(this.config.player); - switch(this.config.player.type) { /* todo : dynamically create the div/video tag which @@ -217,18 +207,20 @@ } var newDiv = IriSP._.uniqueId(this.config.gui.container + "_widget_" + _name + "_"), spacerDiv = IriSP._.uniqueId("LdtPlayer_spacer_"), - divTempl = "
", - spacerTempl = "", - divHtml = Mustache.to_html( divTempl, - { - id: newDiv, - width: this.config.gui.width + divHtml = IriSP.jQuery('