r43407 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r43406‎ | r43407 | r43408 >
Date:07:56, 12 November 2008
Author:dale
Status:old
Tags:
Comment:
fixed thumbnail restore
Modified paths:
  • /trunk/extensions/MetavidWiki/skins/mv_embed/mv_embed.js (modified) (history)
  • /trunk/extensions/MetavidWiki/skins/mv_stream.js (modified) (history)

Diff [purge]

Index: trunk/extensions/MetavidWiki/skins/mv_stream.js
@@ -254,7 +254,7 @@
255255 },
256256 mvdOut:function(mvd_id){
257257 var vid_elm = $j('#embed_vid').get(0);
258 - //only proccess out if in "stoped" state
 258+ //only process out if in "stoped" state
259259 if( vid_elm.isStoped() ){
260260 js_log('do out ' + mvd_id );
261261 this.cur_mvd_id='base';
@@ -301,7 +301,7 @@
302302 if(!vid_elm.onClipDone_disp){
303303 //only restore if the cur_mvd = 'base' and interface updates are not locked
304304 if(this.cur_mvd_id=='base'){
305 - vid_elm.updateThumbnail(org_thum_src);
 305+ vid_elm.updateThumbnail( org_thum_src );
306306 vid_elm.updateVideoTimeReq(org_vid_time_req);
307307 //vid_elm.updateVideoSrc(org_vid_src);
308308 $j('#mv_videoPlayerTime').html(org_vid_title);
Index: trunk/extensions/MetavidWiki/skins/mv_embed/mv_embed.js
@@ -2537,13 +2537,13 @@
25382538 //if(this.class)class_atr = ' class="'+this.class+'"';
25392539 //if(this.style)style_atr = ' style="'+this.style+'"';
25402540 // else style_atr = 'overflow:hidden;height:'+this.height+'px;width:'+this.width+'px;';
2541 - var thumbnail_src = this.media_element.getThumbnailURL();
 2541+ this.thumbnail = this.media_element.getThumbnailURL();
25422542
25432543 //put it all in the div container dc_id
25442544 thumb_html+= '<div id="dc_'+this.id+'" style="position:relative;'+
25452545 ' overflow:hidden; top:0px; left:0px; width:'+this.playerPixelWidth()+'px; height:'+this.playerPixelHeight()+'px; z-index:0;">'+
25462546 '<img width="'+this.playerPixelWidth()+'" height="'+this.playerPixelHeight()+'" style="position:relative;width:'+this.playerPixelWidth()+';height:'+this.playerPixelHeight()+'"' +
2547 - ' id="img_thumb_'+this.id+'" src="' + thumbnail_src + '">';
 2547+ ' id="img_thumb_'+this.id+'" src="' + this.thumbnail + '">';
25482548
25492549 if(this.play_button==true)
25502550 thumb_html+=this.getPlayButton();

Status & tagging log