r77460 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r77459‎ | r77460 | r77461 >
Date:05:37, 30 November 2010
Author:neilk
Status:ok
Tags:
Comment:
minified resources
Modified paths:
  • /trunk/extensions/UploadWizard/resources/combined.js (modified) (history)
  • /trunk/extensions/UploadWizard/resources/combined.min.js (modified) (history)

Diff [purge]

Index: trunk/extensions/UploadWizard/resources/combined.js
@@ -10619,6 +10619,10 @@
1062010620 var thumbnails = data.query.stashimageinfo;
1062110621 for ( var i = 0; i < thumbnails.length; i++ ) {
1062210622 var thumb = thumbnails[i];
 10623+ if ( ! ( thumb.thumburl && thumb.thumbwidth && thumb.thumbheight ) ) {
 10624+ mw.log( "thumbnail missing information" );
 10625+ // XXX error
 10626+ }
1062310627 var image = document.createElement( 'img' );
1062410628 $j( image ).load( function() {
1062510629 callback( image );
Index: trunk/extensions/UploadWizard/resources/combined.min.js
@@ -10619,6 +10619,10 @@
1062010620 var thumbnails=data.query.stashimageinfo;
1062110621 for(var i=0;i<thumbnails.length;i++){
1062210622 var thumb=thumbnails[i];
 10623+if(!(thumb.thumburl&&thumb.thumbwidth&&thumb.thumbheight)){
 10624+mw.log("thumbnail missing information");
 10625+
 10626+}
1062310627 var image=document.createElement('img');
1062410628 $j(image).load(function(){
1062510629 callback(image);

Status & tagging log