Author: andre Date: 2009-08-10 23:34:01 +0200 (Mon, 10 Aug 2009) New Revision: 37658
Modified: openimages/trunk/src/main/webapp/style/js/player.js Log: selection of videotag the jquery way Modified: openimages/trunk/src/main/webapp/style/js/player.js =================================================================== --- openimages/trunk/src/main/webapp/style/js/player.js 2009-08-10 20:21:10 UTC (rev 37657) +++ openimages/trunk/src/main/webapp/style/js/player.js 2009-08-10 21:34:01 UTC (rev 37658) @@ -57,7 +57,7 @@ } Player.prototype._init = function(id, url, config) { - this.player = $('#' + id + ' video')[0]; // the first video tag it finds + this.player = $('#' + id + ' video:first'); // the first video tag it finds this.url = url; /* if (this.urls.length == 0) this.urls[0] = $(this.player).attr('src'); */ this.poster = $(this.player).attr('poster'); _______________________________________________ Cvs mailing list Cvs@lists.mmbase.org http://lists.mmbase.org/mailman/listinfo/cvs