Author: andre Date: 2010-05-26 13:21:46 +0200 (Wed, 26 May 2010) New Revision: 42274
Modified: openimages/trunk/src/main/webapp/oiplayer/js/jquery.oiplayer.js Log: seems that $(video).attr('height') leaves you with a string and cause problems in some browser but I dare not to change it to $(video).height() Modified: openimages/trunk/src/main/webapp/oiplayer/js/jquery.oiplayer.js =================================================================== --- openimages/trunk/src/main/webapp/oiplayer/js/jquery.oiplayer.js 2010-05-26 10:11:50 UTC (rev 42273) +++ openimages/trunk/src/main/webapp/oiplayer/js/jquery.oiplayer.js 2010-05-26 11:21:46 UTC (rev 42274) @@ -590,8 +590,8 @@ if (this.autobuffer == undefined) this.autobuffer = false; this.controls = $(this.player).attr('controls'); if (this.controls == undefined) this.controls = false; - this.width = $(this.player).attr('width') > 0 ? $(this.player).attr('width') : 320; - this.height = $(this.player).attr('height') > 0 ? $(this.player).attr('height') : 240; + this.width = $(this.player).attr('width') > 0 ? parseInt($(this.player).attr('width')) : 320; + this.height = $(this.player).attr('height') > 0 ? parseInt($(this.player).attr('height')) : 240; this.state = 'init'; this.pos = 0; _______________________________________________ Cvs mailing list Cvs@lists.mmbase.org http://lists.mmbase.org/mailman/listinfo/cvs