mediawiki-extensions-Visual.../modules/ve-mw/ui/widgets/ve.ui.MWLanguageSearchWidget.js
Ed Sanders be36dfca25 Use core language search dialog
Depends on I21a9d7e in core.

Change-Id: I12cacf775b490d7c676011a5a154deeefe5527c5
2014-04-23 18:43:03 -07:00

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();
};