r73364 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r73363‎ | r73364 | r73365 >
Date:08:28, 20 September 2010
Author:dale
Status:deferred
Tags:
Comment:
fixed gallery pop-up dialog for video clips
Modified paths:
  • /branches/MwEmbedStandAlone/remotes/mediaWiki.js (modified) (history)

Diff [purge]

Index: branches/MwEmbedStandAlone/remotes/mediaWiki.js
@@ -390,11 +390,11 @@
391391
392392 // If in a gallery box or filehistory we will be displaying the video larger in a lightbox
393393 if( $j( '#' + vidId ).parents( '.gallerybox,.filehistory' ).length ){
394 - // Update the width to 400 and keep scale
 394+ // Update the width to 420 and keep scale
395395 pwidth = 400;
396396 if( pheight != 0 ) {
397 - pheight = pwidth * ( $j( '#' + vidId ).height() / $j( '#' + vidId ).width() );
398 - }
 397+ pheight = pwidth * ( $j( '#' + vidId ).height() / $j( '#' + vidId ).width() );
 398+ }
399399 }
400400
401401 if ( src ) {
@@ -455,7 +455,7 @@
456456 var _this = this;
457457
458458 var dialogHeight = ( pheight == 0 )? 175 :
459 - ( pheight - 25 );
 459+ ( pheight + 25 );
460460 var buttons = {};
461461 buttons[ gM( 'mwe-ok' ) ] = function(){
462462 var embedPlayer = $j( '#mwe_' + $j( _this ).data( 'playerId' ) ).get(0);

Status & tagging log