Pass searchAPI and languages to work to ULS
Change-Id: I7bac18842332ff445f9570f568710140fc3b3b3d
This commit is contained in:
@@ -17,7 +17,7 @@
|
|||||||
* @licence MIT License
|
* @licence MIT License
|
||||||
*/
|
*/
|
||||||
|
|
||||||
( function( $ ) {
|
( function( $, mw ) {
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
var template = '<div class="row"><div class="twelve columns"><h3>Display Settings</h3></div></div>'
|
var template = '<div class="row"><div class="twelve columns"><h3>Display Settings</h3></div></div>'
|
||||||
@@ -138,6 +138,8 @@
|
|||||||
$moreLanguagesButton.uls( {
|
$moreLanguagesButton.uls( {
|
||||||
left: that.$parent.left,
|
left: that.$parent.left,
|
||||||
top: that.$parent.top,
|
top: that.$parent.top,
|
||||||
|
languages: mw.config.get( 'wgULSLanguages' ),
|
||||||
|
searchAPI: mw.util.wikiScript( 'api' ) + "?action=languagesearch",
|
||||||
onReady: function( uls ) {
|
onReady: function( uls ) {
|
||||||
var $back = $( '<a>' )
|
var $back = $( '<a>' )
|
||||||
.prop( 'href', '#' )
|
.prop( 'href', '#' )
|
||||||
@@ -322,4 +324,4 @@
|
|||||||
$.fn.languagesettings.modules = $.extend( $.fn.languagesettings.modules, {
|
$.fn.languagesettings.modules = $.extend( $.fn.languagesettings.modules, {
|
||||||
display: DisplaySettings
|
display: DisplaySettings
|
||||||
} );
|
} );
|
||||||
} ) ( jQuery );
|
} ) ( jQuery, mediaWiki );
|
||||||
|
|||||||
Reference in New Issue
Block a user