The $.uls function in jquery.uls.core in createLanguageFilter
passes the onSelect function to the
$.fn.languagefilter so the onSelect there should be made
compatible.
Bug: T261973
Adding languages:
* Bajau (bdr)
* Cakma (ccp); also adds support for the Chakma script
* Jeju (jje)
Also adds Aragonese as a language of Spain.
Updating to
d7a5e8db99
* Revert the BCP 47 standardization patch. Will be restored some time soon.
* Update autonyms: ban, gcr, hyw, jv
* Add languages: ksw, pov, rej, vai
Updating to
6313c6a9f8
* Remove capital letter from the Armenian autonym
* Update Santali autonym to the Ol Chiki script
* Add Eastern Pwo (kjp)
* Add Fula language to several countris in regions data
Updating to
5e8bf8b95f6123ab7522ec7876c8399ffd3f6e04
ULS input element had onInputChange() handler attached to
change, textInput and input events.
That caused onInputChange() to be called twice when there is user
input and ULS gets closed, since 'change' event fires when
<input type="text"> element loses focus.
Registering handler only for 'input' is sufficient for the intent.
sortByScriptGroup and getLanguagesByScriptGroup are updated from language-data.
(jquery.uls.data.utils should be merged to language-data.)
This resolves downstream bug
https://phabricator.wikimedia.org/T189090
Add the following languages:
* Northern Ndebele (nd)
* Okanagan (oka)
Update autonyms for the following languages:
* Kurdish (ku)
* Korean (DPRK variant, ko-kp)
Updating to
aab40a4f6f
This input field is only for language names. There's no reason for it
to have something longer. Looking at the logs of searches,
people sometimes write very long things there: gibberish,
URLs, inappropriate search strings, mistaken pastes from other places,
and so on.
So it should be limited by maxlength.
It's practically never useful after 20 characters, but setting at 40
just to be on the safe side. The longest language name in langdb is 34.
There was a mistake in #299: the $.trigger() must take only one argument
for extraParameters. Sending another parameter causes NULL to be logged in
EventLogging for ulsPurpose.
Add the ulsPurpose option. Empty string by default.
This is useful for web application that use ULS in several different context,
and need to distinguish what was the purpose of the particular ULS panel.
An example of usage can be found at
https://phabricator.wikimedia.org/T179402
* Make ULS responsive
* Depend on both screen size and number of languages when calculating
ULS menu width.
* Introduce resize listener to responsively recreate ULS when screen
size changes.
The resultHandler is responsible for updating the `LanguageCategoryDisplay`, so we should not call `render` separately in `search` when there is no search query.
https://phabricator.wikimedia.org/T185086
* 20px spacing above and below the "No results found" message.
* 12px spacing above and below the search indications ("You can search by...")
* Adjusting the text color to use Base20 (#54595D)
* Adjust the background to use the same background color as the area above it (#FCFCFC).
* Add a top border in Base80 (#EAECF0) to separate both areas.
See https://phabricator.wikimedia.org/T175235