Commit Graph
20 Commits
Author SHA1 Message Date
Abijeetandjenkins-bot 4632f33e6a Drop support for MediaWiki 1.36
Bug: T311510
Change-Id: I9bc2f91f274df1d37ebad639b42ee4b542274db9
2022-07-26 11:04:40 +00:00
Abijeetandjenkins-bot 9eb5342795 Update version and required MediaWiki version for MLEB 2022.07
Bug: T311511
Change-Id: I301a288b840204c43c74a5654621995676b700f9
2022-07-25 13:06:00 +00:00
Abijeet a924ab4a8f Update version for MLEB 2022.04
Bug: T305141
Change-Id: I90a9eba2bb732dae855bfb58212d31b6fd7d0609
2022-04-25 18:16:52 +05:30
Abijeetandjenkins-bot 03cf7863ec Stop propagating first click handler when loading languagesettings
The languagesettings dialog does not open when clicking the
uls.trigger for the first time. This issue occurs when the user is
not logged in, ULSPosition is personal, and ULSAnonCanChangeLanguage
is false.

Without this change, the following happens:
* uls.languagesettings is loaded via uls.interface
* uls.languagesettings::hide is called via uls.languagesettings::init
* click method is triggered immediately via script in uls.interface
* uls.languagesettings::show is called
* uls.languagesettings::hide is called - triggered via ::show
  method - $( document.documentElement ).trigger( 'click' ); but
  dialog is not visible yet, so this does nothing
* uls.languagesettings::show displays the uls.languagesettings
* hide method called again via click handler for documentElement

With this change in place the hide method is not called again due to
e.stopPropagation();

Additionally add a parameter autoOpen that can be set to open the dialog
automatically.

Bug: T301882
Change-Id: I54e8172ae017c4a9c6ab5b841d9328b2f24f97a8
2022-03-08 09:39:43 +00:00
Abijeetandjenkins-bot 6e6635bdbb Move version check inside PersonalUrls hook
Stop additional conditional hook if MW < 1.37, and move the check
to inside the hook itself

Bug: T299305
Change-Id: Ied1c5c0beee015d7b0a8d6bd750346f4a8a5aaa1
2022-01-24 09:24:43 +00:00
Abijeetandjenkins-bot c9d695db36 Update version for MLEB 2022.01
Bug: T298889
Change-Id: I362f8c0c6a693b52c7d944976201290be3c55330
2022-01-19 08:10:11 +00:00
Abijeetandjenkins-bot 30986e6d9e Remove backward compatibility for MW <= 1.35
Bug: T298856
Change-Id: I1e635785d0a29d87f510e729b11fce9a2eb68e11
2022-01-18 12:51:07 +00:00
Abijeetandjenkins-bot defc3d416d ApiULSSetLanguage: Use LanguageNameUtils
Change-Id: I00e814894db4ba84f1d08c52db2993b59fbccf55
2021-11-16 18:36:23 +00:00
Abijeetandjenkins-bot 98252ee386 LanguageNameSearch: Remove usage of deprecated Language functions
Change-Id: Ia8f2961550ccb4e0032cd7e24d36628c675873a9
2021-11-16 13:57:36 +00:00
Abijeetandjenkins-bot da4d965739 Replace usage of ApiBase::PARAM_* with ParamValidator::PARAM_*
Change-Id: I4c7c16f8b3380cdaf32fbedc9d33f12b14050774
2021-11-16 13:56:49 +00:00
Abijeetandjenkins-bot 4d8131af10 MW 1.35: Re-add class attribute for ULS
Without the class attribute, the ULS does not open on MW <= 1.35.
This was changed in Ie9e30af5468aea9803d77c9a36e480ba2b2e86a0

Bug: T294021
Change-Id: I1bcf4e442e85f8848c5e4ff5609204602265b949
2021-10-28 08:08:29 +00:00
Abijeet 770b0dfe50 Update version for MLEB 2021.10
Bug: T294021
Change-Id: I252fffcde7d0c401cb8a460c3b162c71948ec018
2021-10-25 13:29:03 +05:30
Abijeetandjenkins-bot 30ba18e86d Update jquery.uls from upstream
Contains Localisation updates and a fix for T187553

Updating to https://github.com/wikimedia/jquery.uls/commit/e3a9a11840e2706a72ac23f8248ec935262fbe3f

Change-Id: I3bd3ec67fb0b1b7a487ccd5568e99f96636d7a88
2021-09-29 09:16:18 +00:00
AbijeetandAbijeet Patro 065018ef00 Update jquery.uls from upstream
Contains Localisation updates.

Updating to https://github.com/wikimedia/jquery.uls/commit/082092e81d012f3a67850870f57ce2d8e8040d7d

Change-Id: If66f3edb7cf318ee4fc4aee7cb9481df50ae573f
2021-09-22 08:49:18 +00:00
Abijeetandjenkins-bot 5baf437b3c Remove MW 1.34 backward compatible code
Move hooks and scripts to extensions.json

Bug: T282783
Change-Id: Id63d17d04789bb36fff35e0512e7878dc8bfe12c
2021-06-01 08:17:13 +00:00
Abijeetandjenkins-bot e44e59497c Set language URLs to empty for older version of skins
During MLEB 2020.07 release testing noticed that if $wgULSPosition
is interlanguage, the ULS was not appearing.

Revert some of the changes introduced in
I2843edde1bb45c70911d5acf2f7dafdff3bac53e to fix this

Tested this change on,
1. MW 1.34, Timeless (1b22886)
2. MW 1.34, Vector (f39a3f0)
3. MW 1.36, Timeless (e5e188f)
4. MW 1.36, Vector (3926ffa)

ULS appears in all scenarios

Change-Id: I84feaed26c4e32d74ae90152a2d006648d4d9b64
2020-07-23 11:42:40 +00:00
Abijeet 09a19700d2 Update ULS_VERSION for the MLEB release
This is currently used in CleanChanges extension:
https://codesearch.wmcloud.org/search/?q=ULS_VERSION&i=nope&files=&repos=

Bug: T257286
Change-Id: I62cf6a20c6a990d21b8f958356bf35aabb749f38
2020-07-23 16:16:28 +05:30
Abijeetandjenkins-bot 459d55c5d3 Remove setlang URL parameter on dialog close
Add two new options for ext.uls.dialog - afterOpen and afterClose.
These are callback function which will be triggered after the dialog
opens or closes.

Using the afterClose callback in ext.uls.setlang to remove the
setlang parameter from the URL if the dialog is closed without
pressing any button. This might happen if the user closes the dialog
by pressing Esc, or by clicking on the overlay.

Also see: Ie3215d12d9c77f15597495e21610707b272eeee9

In addition, renamed all occurrence of setlang to setLang.

Bug: T63115
Change-Id: Icaf086f947b1d91bf7ad5b36f126da0be1fc7747
2020-01-23 09:27:15 +00:00
Abijeetandjenkins-bot 5ad4f74ea9 Add support for keyboard events for the setlang dialog
Support has been added for:

* Esc: Closes the dialog
* Tab: Ensures that tabbing keeps focus on the focusable elements
  in the dialog. If no overlay is not present, the focus is
  allowed to flow normally.

This should not happen but if NO focusable elements are found and
overlay is displayed, focus is locked on the overlay.

Also add description and other license information for uls.dialog
& uls.setlang files.

Bug: T63115
Change-Id: Ie3215d12d9c77f15597495e21610707b272eeee9
2020-01-14 15:14:37 +00:00
Abijeetandjenkins-bot ff02e63a45 Update setlang to display confirmation dialog to change language
setlang will now display a dialog to confirm with the user that
they would like to change their interface language. The preferred
language will only be updated if the user confirms.

The dialog will be displayed if the setlang parameter is present in
the query string and,

* A user is logged in, and their preferred language is not the same
  as the one passed via setlang.
* For an anonymous user if the wgULSAnonCanChangeLanguage is true,
  and the current interface language is not the same as the one
  passed via setlang.

Bug: T63115
Change-Id: I882297d99a594fd82fd0aec3b4664e8bfd1eac3a
2019-12-19 14:54:34 +00:00