mediawiki-extensions-Visual.../modules/ve-mw/init/ve.init.mw.GalleryImageInfoCache.js
James D. Forrester 122f49b2dd build: Bump file copyright notices for 2017
Change-Id: I3c20809e71cc0da58123e1b5f29c4f3aac945496
2017-01-03 08:58:33 -08:00

41 lines
876 B
JavaScript

/*!
* VisualEditor MediaWiki Initialization GalleryImageInfoCache class.
*
* @copyright 2011-2017 VisualEditor Team and others; see AUTHORS.txt
* @license The MIT License (MIT); see LICENSE.txt
*/
/**
* Get thumbnail URL information about gallery images.
*
* @class
* @extends ve.init.mw.ImageInfoCache
* @constructor
*/
ve.init.mw.GalleryImageInfoCache = function VeInitMwGalleryImageInfoCache() {
ve.init.mw.GalleryImageInfoCache.super.call( this );
};
/* Inheritance */
OO.inheritClass( ve.init.mw.GalleryImageInfoCache, ve.init.mw.ImageInfoCache );
/* Methods */
/**
* @inheritdoc
*/
ve.init.mw.GalleryImageInfoCache.prototype.getRequestPromise = function ( subqueue ) {
return new mw.Api().get(
{
action: 'query',
prop: 'imageinfo',
iiprop: 'url',
titles: subqueue,
iiurlwidth: 200,
iiurlheight: 200
},
{ type: 'POST' }
);
};