X-Git-Url: http://p2p-next.cs.pub.ro/gitweb/?a=blobdiff_plain;f=js%2Fjquery.ui.nsvideo.js;h=fe65927c10e41060e01850cfd28363c47905ecc0;hb=9ace04ad2c3b74bf584e245e4beec5d547360b01;hp=ec30d875daf4780176217fe6ca3de0e11799f7c5;hpb=954fc0210d9151cb86ca4dad6a955f59ba135915;p=living-lab-site.git diff --git a/js/jquery.ui.nsvideo.js b/js/jquery.ui.nsvideo.js index ec30d87..fe65927 100644 --- a/js/jquery.ui.nsvideo.js +++ b/js/jquery.ui.nsvideo.js @@ -97,8 +97,8 @@ $.widget( "ui.nsvideo", { .appendTo(widget.$controls); $formats = $('.ui-nsvideo-formats', $formats[0]); $.each(widget.options.src, function(index, value) { - id = widget.element.attr('id') + '-format-' + index; - definition = value.res.substring(value.res.indexOf('x')+1)+'p'; + var id = widget.element.attr('id') + '-format-' + index; + var definition = value.res.substring(value.res.indexOf('x')+1)+'p'; $('') .appendTo($formats) .attr('checked', (index == widget.options.srcIndex)) @@ -187,7 +187,7 @@ $.widget( "ui.nsvideo", { }, video: function() { - widget = this; + var widget = this; // Select video source. // If src option is string, that's the source. @@ -288,7 +288,7 @@ $.widget( "ui.nsvideo", { }, seeking: function() { widget.html5.refreshState(); - }, + } }); } // VLC @@ -385,7 +385,7 @@ $.widget( "ui.nsvideo", { if (widget.$video.width() < 640) { widget.element.css('width', - 427 + 8 + 'px');//TODO 640 + 8 + 640 + 8 + 'px'); widget.$video.css('left', Math.round(widget.$videoContainer.width()/2 - widget.$video.width()/2)