Update jquery.uls from upstream

Updating to:
8292fe90e3

Bug: T328956
Change-Id: I5e74b096f8b5c7c5b0263bfbc85aa0ee5f1b59f9
This commit is contained in:
Abijeet
2023-05-29 14:04:54 +05:30
parent c40be531b0
commit b4d4e20c15
3 changed files with 19 additions and 23 deletions

View File

@@ -1,22 +0,0 @@
{
"@metadata": {
"authors": [
"Andibing",
"Chase me ladies, I'm the Cavalry"
]
},
"uls-region-WW": "Worldwide",
"uls-region-SP": "Special",
"uls-region-AM": "America",
"uls-region-AF": "Africa",
"uls-region-EU": "Europe",
"uls-region-AS": "Asia",
"uls-region-ME": "Middle East",
"uls-region-PA": "Pacific",
"uls-region-all": "All languages",
"uls-no-results-found": "No results found",
"uls-common-languages": "Suggested languages",
"uls-no-results-suggestion-title": "You may be interested in:",
"uls-search-help": "You can search by language name, script name, ISO code of language or you can browse by region.",
"uls-search-placeholder": "Search for a language"
}

View File

@@ -0,0 +1,11 @@
{
"@metadata": {
"authors": [
"Amire80"
]
},
"uls-region-AM": "᠇ᠮᡝᡵᡳᡴᠠ",
"uls-region-EU": "ᠣᡵᠣᠪᠠ",
"uls-region-all": "ᡝᡳ᠌ᡨᡝᠨ ᡤᡳᠰᡠᠨ",
"uls-no-results-suggestion-title": "ᠠᡳ᠌ᠨᠴᡳ ᠰᡳᠨᡳ ᠠᠮᡠᡵᠠᠩᡤᡝ ᠈"
}

View File

@@ -112,8 +112,15 @@
if ( this.navigationIndex === null ) {
this.navigationIndex = 0;
} else {
this.navigationIndex++;
// Auto-correct the index. It has been noticed that the navigationIndex goes beyond the
// max index sometimes. See: phab:T328956#8854835
if ( this.navigationIndex > maxIndex ) {
this.navigationIndex = maxIndex;
} else {
this.navigationIndex++;
}
}
this.highlightLanguageOption();
},