Small cleanups and typo fixes
Change-Id: I4faeb4673fd5e903d2931d6071262a893d4009f5
This commit is contained in:
committed by
jenkins-bot
parent
929e707c49
commit
2a044e1e0a
@@ -82,7 +82,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get site-specific highlighted languags. Mostly used on Wikimedia sites.
|
* Get site-specific highlighted languages. Mostly used on Wikimedia sites.
|
||||||
*
|
*
|
||||||
* @return {string[]|undefined} Language codes
|
* @return {string[]|undefined} Language codes
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -31,7 +31,7 @@
|
|||||||
$.i18n.fallbacks = {};
|
$.i18n.fallbacks = {};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Load localization messags for a locale to the jquery.i18n
|
* Load localization messages for a locale to the jquery.i18n
|
||||||
* messagestore.
|
* messagestore.
|
||||||
* Also called by RL module ResourceLoaderULSJsonMessageModule
|
* Also called by RL module ResourceLoaderULSJsonMessageModule
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -64,7 +64,6 @@
|
|||||||
this.$template = $( template );
|
this.$template = $( template );
|
||||||
this.uiLanguage = this.getInterfaceLanguage();
|
this.uiLanguage = this.getInterfaceLanguage();
|
||||||
this.contentLanguage = this.getContentLanguage();
|
this.contentLanguage = this.getContentLanguage();
|
||||||
this.$imes = null;
|
|
||||||
this.$parent = $parent;
|
this.$parent = $parent;
|
||||||
// ime system is lazy loaded, make sure it is initialized
|
// ime system is lazy loaded, make sure it is initialized
|
||||||
mw.ime.init();
|
mw.ime.init();
|
||||||
@@ -84,7 +83,6 @@
|
|||||||
|
|
||||||
this.dirty = false;
|
this.dirty = false;
|
||||||
this.$parent.$settingsPanel.empty();
|
this.$parent.$settingsPanel.empty();
|
||||||
this.$imes = $( document.body ).data( 'ime' );
|
|
||||||
this.$parent.$settingsPanel.append( this.$template );
|
this.$parent.$settingsPanel.append( this.$template );
|
||||||
$enabledOnly = this.$template.find( '.enabled-only' );
|
$enabledOnly = this.$template.find( '.enabled-only' );
|
||||||
if ( $.ime.preferences.isEnabled() ) {
|
if ( $.ime.preferences.isEnabled() ) {
|
||||||
|
|||||||
@@ -151,10 +151,7 @@
|
|||||||
clearTimeout( tipsyTimer );
|
clearTimeout( tipsyTimer );
|
||||||
} ).on( 'mouseout', function () {
|
} ).on( 'mouseout', function () {
|
||||||
tipsyTimer = setTimeout( hideTipsy, timeout );
|
tipsyTimer = setTimeout( hideTipsy, timeout );
|
||||||
} );
|
} ).on( 'click', hideTipsy );
|
||||||
|
|
||||||
// hide the tooltip when clicked on it
|
|
||||||
$( '.uls-tipsy' ).on( 'click', hideTipsy );
|
|
||||||
|
|
||||||
tipsyTimer = setTimeout( hideTipsy, timeout );
|
tipsyTimer = setTimeout( hideTipsy, timeout );
|
||||||
}
|
}
|
||||||
@@ -472,7 +469,7 @@
|
|||||||
$target,
|
$target,
|
||||||
mw.uls.getInterlanguageListFromNodes( languageNodes ),
|
mw.uls.getInterlanguageListFromNodes( languageNodes ),
|
||||||
// Using this as heuristic for now. May need to reconsider later. Enables
|
// Using this as heuristic for now. May need to reconsider later. Enables
|
||||||
// behavior sepcific to compact language links.
|
// behavior specific to compact language links.
|
||||||
!standalone
|
!standalone
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/*!
|
/*!
|
||||||
* Loaded when setlang query paramter is set on the page.
|
* Loaded when setlang query parameter is set on the page.
|
||||||
*
|
*
|
||||||
* @private
|
* @private
|
||||||
* @since 2020.01
|
* @since 2020.01
|
||||||
|
|||||||
Reference in New Issue
Block a user