From 2a044e1e0a7c54b96ac5dcb909286edcab670672 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niklas=20Laxstr=C3=B6m?= Date: Wed, 14 Apr 2021 13:09:05 +0300 Subject: [PATCH] Small cleanups and typo fixes Change-Id: I4faeb4673fd5e903d2931d6071262a893d4009f5 --- resources/js/ext.uls.compactlinks.js | 2 +- resources/js/ext.uls.i18n.js | 2 +- resources/js/ext.uls.inputsettings.js | 2 -- resources/js/ext.uls.interface.js | 7 ++----- resources/js/ext.uls.setlang.js | 2 +- 5 files changed, 5 insertions(+), 10 deletions(-) diff --git a/resources/js/ext.uls.compactlinks.js b/resources/js/ext.uls.compactlinks.js index c1cb2e7f..72038c78 100644 --- a/resources/js/ext.uls.compactlinks.js +++ b/resources/js/ext.uls.compactlinks.js @@ -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 */ diff --git a/resources/js/ext.uls.i18n.js b/resources/js/ext.uls.i18n.js index f1228e60..4123fd64 100644 --- a/resources/js/ext.uls.i18n.js +++ b/resources/js/ext.uls.i18n.js @@ -31,7 +31,7 @@ $.i18n.fallbacks = {}; /** - * Load localization messags for a locale to the jquery.i18n + * Load localization messages for a locale to the jquery.i18n * messagestore. * Also called by RL module ResourceLoaderULSJsonMessageModule * diff --git a/resources/js/ext.uls.inputsettings.js b/resources/js/ext.uls.inputsettings.js index 7c08c8f2..b4f69726 100644 --- a/resources/js/ext.uls.inputsettings.js +++ b/resources/js/ext.uls.inputsettings.js @@ -64,7 +64,6 @@ this.$template = $( template ); this.uiLanguage = this.getInterfaceLanguage(); this.contentLanguage = this.getContentLanguage(); - this.$imes = null; this.$parent = $parent; // ime system is lazy loaded, make sure it is initialized mw.ime.init(); @@ -84,7 +83,6 @@ this.dirty = false; this.$parent.$settingsPanel.empty(); - this.$imes = $( document.body ).data( 'ime' ); this.$parent.$settingsPanel.append( this.$template ); $enabledOnly = this.$template.find( '.enabled-only' ); if ( $.ime.preferences.isEnabled() ) { diff --git a/resources/js/ext.uls.interface.js b/resources/js/ext.uls.interface.js index b392b646..298b1376 100644 --- a/resources/js/ext.uls.interface.js +++ b/resources/js/ext.uls.interface.js @@ -151,10 +151,7 @@ clearTimeout( tipsyTimer ); } ).on( 'mouseout', function () { tipsyTimer = setTimeout( hideTipsy, timeout ); - } ); - - // hide the tooltip when clicked on it - $( '.uls-tipsy' ).on( 'click', hideTipsy ); + } ).on( 'click', hideTipsy ); tipsyTimer = setTimeout( hideTipsy, timeout ); } @@ -472,7 +469,7 @@ $target, mw.uls.getInterlanguageListFromNodes( languageNodes ), // 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 ); diff --git a/resources/js/ext.uls.setlang.js b/resources/js/ext.uls.setlang.js index c26a01ee..3af7090a 100644 --- a/resources/js/ext.uls.setlang.js +++ b/resources/js/ext.uls.setlang.js @@ -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 * @since 2020.01