mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-29 16:44:51 +00:00
12cc56400b
Updates the model and re-renders the gallery. Bug: T150621 Bug: T149602 Bug: T149596 Change-Id: I1e93c3af02eeeff1fcdaa5549cccc61ea755ee04
41 lines
881 B
JavaScript
41 lines
881 B
JavaScript
/*!
|
|
* VisualEditor MediaWiki Initialization GalleryImageInfoCache class.
|
|
*
|
|
* @copyright 2011-2018 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|size',
|
|
titles: subqueue,
|
|
iiurlwidth: 200,
|
|
iiurlheight: 200
|
|
},
|
|
{ type: 'POST' }
|
|
);
|
|
};
|