uls- prefix classes and IDs
Needs to merged with https://github.com/wikimedia/jquery.uls/pull/147 in core. Change-Id: I860e5ac7f2fc17508cc76fb756d39cbd61aa1afe
This commit is contained in:
@@ -88,7 +88,7 @@
|
|||||||
mw.hook( 'mw.uls.webfonts.enable' ).add( $.proxy( this.enableWebfonts, this ) );
|
mw.hook( 'mw.uls.webfonts.enable' ).add( $.proxy( this.enableWebfonts, this ) );
|
||||||
mw.hook( 'mw.uls.webfonts.disable' ).add( $.proxy( this.disableWebfonts, this ) );
|
mw.hook( 'mw.uls.webfonts.disable' ).add( $.proxy( this.disableWebfonts, this ) );
|
||||||
|
|
||||||
$( 'body' ).on( 'noresults.uls', '.uls-menu .languagefilter',
|
$( 'body' ).on( 'noresults.uls', '.uls-menu .uls-languagefilter',
|
||||||
$.proxy( this.noSearchResults, this )
|
$.proxy( this.noSearchResults, this )
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -60,11 +60,11 @@
|
|||||||
// Remove previous values when reinitializing
|
// Remove previous values when reinitializing
|
||||||
mw.uls.languageSelectionMethod = undefined;
|
mw.uls.languageSelectionMethod = undefined;
|
||||||
|
|
||||||
$( '#map-block' ).on( 'click', function () {
|
$( '#uls-map-block' ).on( 'click', function () {
|
||||||
mw.uls.languageSelectionMethod = 'map';
|
mw.uls.languageSelectionMethod = 'map';
|
||||||
} );
|
} );
|
||||||
|
|
||||||
$( '#languagefilter' ).on( 'keydown', function () {
|
$( '#uls-languagefilter' ).on( 'keydown', function () {
|
||||||
// If it's the first letter,
|
// If it's the first letter,
|
||||||
// log the usage of the search box
|
// log the usage of the search box
|
||||||
if ( $( this ).val() === '' ) {
|
if ( $( this ).val() === '' ) {
|
||||||
|
|||||||
Reference in New Issue
Block a user