Commit Graph
10 Commits
Author SHA1 Message Date
AbijeetandNiklas Laxström ea8af529a2 jquery.uls.lcd: Handle scenario where selected item is undetermined
Throw an error if during keyboard navigation the selected item could
not be determined.

Bug: https://phabricator.wikimedia.org/T328956
2023-04-18 14:32:17 +03:00
AbijeetandNiklas Laxström a5a4701792 jquery.uls.lcd: Check if languages are present before highlighting
There might not be any languages if uls empty state is set in ULS
extension
2023-03-13 14:16:12 +02:00
AbijeetandNiklas Laxström 02cd462ec2 jquery.uls.lcd: Add null check for navigationIndex for up navigation 2023-02-16 11:11:11 +02:00
AbijeetandNiklas Laxström 6f1c6a4743 Fix line length warnings 2023-01-16 15:04:12 +02:00
AbijeetandNiklas Laxström cfbfc5d2ff Remove unused variable and add uls prefix for CSS class 2023-01-16 15:04:12 +02:00
AbijeetandNiklas Laxström 606697ae7c Fix issue with moving cursor location when pressing arrow keys 2023-01-16 15:04:12 +02:00
AbijeetandNiklas Laxström f6b1e5cc6e Add some comments to the code 2023-01-16 15:04:12 +02:00
AbijeetandNiklas Laxström 453cc37341 Fix general and usability issues, add some more features
* Scoll to currently highlighted item if its not visible.
* Fix navigation when list is filtered
* Add support for selecting highlighted item by pressing enter
2023-01-16 15:04:12 +02:00
AbijeetandNiklas Laxström e3a9a11840 ULS LCD: Check if region exists before adding languages
The regions displayed on ULS depend on the showRegions parameter
passed to uls.lcd plugin. If a new language and region have
been added to the language data, the region for it will not be
available to showRegion because it's static.

Bug: T187553
2021-09-28 15:58:32 +03:00
Abijeet PatroandGitHub 9821510922 Security Fix: Done by running npm audit fix (#397) 2021-06-11 15:17:49 +05:30