mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-26 07:15:32 +00:00
be36dfca25
Depends on I21a9d7e in core. Change-Id: I12cacf775b490d7c676011a5a154deeefe5527c5
36 lines
822 B
JavaScript
36 lines
822 B
JavaScript
/*!
|
|
* VisualEditor UserInterface MWLanguageSearchWidget class.
|
|
*
|
|
* @copyright 2011-2014 VisualEditor Team and others; see AUTHORS.txt
|
|
* @license The MIT License (MIT); see LICENSE.txt
|
|
*/
|
|
|
|
/*global mw */
|
|
|
|
/**
|
|
* Creates an ve.ui.MWLanguageSearchWidget object.
|
|
*
|
|
* @class
|
|
* @extends ve.ui.LanguageSearchWidget
|
|
*
|
|
* @constructor
|
|
* @param {Object} [config] Configuration options
|
|
*/
|
|
ve.ui.MWLanguageSearchWidget = function VeUiMWLanguageSearchWidget( config ) {
|
|
// Parent constructor
|
|
ve.ui.LanguageSearchWidget.call( this, config );
|
|
};
|
|
|
|
/* Inheritance */
|
|
|
|
OO.inheritClass( ve.ui.MWLanguageSearchWidget, ve.ui.LanguageSearchWidget );
|
|
|
|
/* Methods */
|
|
|
|
/**
|
|
* @inheritDoc
|
|
*/
|
|
ve.ui.MWLanguageSearchWidget.prototype.getLanguages = function () {
|
|
return mw.config.get( 'wgULSLanguages' ) || $.uls.data.getAutonyms();
|
|
};
|