Introduce InterwikiLookupAdapter on top of SiteLookup
[lhc/web/wiklou.git] / resources / src / mediawiki / page / gallery-slideshow.js
index 85ded44..3b2c86e 100644 (file)
                var api, title, params,
                        imageSrc = $img.attr( 'src' );
 
+               // Reject promise if there is no thumbnail image
+               if ( $img[ 0 ] === undefined ) {
+                       return $.Deferred().reject();
+               }
+
                if ( this.imageInfoCache[ imageSrc ] === undefined ) {
                        api = new mw.Api();
                        // TODO: This supports only gallery of images