mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-23 22:13:34 +00:00
GalleryContextItem: Only count image node children
Bug: T320874 Change-Id: Id4c70ece1e54a47e142c6dee3fd25b3519c2fea9
This commit is contained in:
parent
2c7499f644
commit
83013d3ca6
|
@ -44,7 +44,7 @@ ve.ui.MWGalleryContextItem.static.commandName = 'gallery';
|
|||
* @inheritdoc
|
||||
*/
|
||||
ve.ui.MWGalleryContextItem.prototype.getDescription = function () {
|
||||
return ve.msg( 'visualeditor-mwgallerycontext-description', this.model.children.length );
|
||||
return ve.msg( 'visualeditor-mwgallerycontext-description', this.model.getImageNodes().length );
|
||||
};
|
||||
|
||||
/* Registration */
|
||||
|
|
Loading…
Reference in a new issue