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