We include both select and .oo-ui-dropdownInputWidget, since there may
be situations where the latter receives the click event and not the
<select> element.
Bug: T261901
Bug: T261476
Change-Id: Iefcedcf52da21c47081d39bdec8bb6f60acaf590
The same config exists in all widgets that are based on the
TitleWidget:
* TitleInputWidget
* TitleSearchWidget
* TitlesMultiselectWidget
The UserInputWidget should behave the same, as it does something
very similar.
This is done for (but doesn't block) I15c3521.
Change-Id: Ifb1dd9d7bef79ff367cd2befddbbc216ca721d02
Our amazing
https://codesearch.wmflabs.org/search/?q=getDotExtension&i=1
could only find a single user of this method, and that was even a
mistake, see I68426bf.
What code typically needs is:
* The full title.
* A file name without the extension.
* The extension only.
If code needs the extension with a dot, it's easier if that code either
calls getMain() or getMainText(), or prepends the dot itself.
This change helps reducing the complexity of the mw.Title module, which
is basically always loaded.
Depends-On: I68426bff662ceea8a3dd6dcae116f47f81195b4c
Change-Id: I9330eff5a73e2bccad74a78fa5b6a8897b12f666
updateWatchLink was removing mw-watchlist-temp class when watching
a page during the loading animation transforming what should be a half
star spining into an empty star
This patch also consolidates the logic of adding and removing
mw-watchlist-temp css class into WatchlistExpiryWidget
Bug: T259053
Bug: T260434
Change-Id: I1e11f0e129c53b405a2ffa8cd1e0793aec8eb126
Set the nextVisibleTimeoutId value to 1 when it is initialized.
The nextVisibleTimeoutId is assigned to visibleTimeoutId in the set()
method and it should always be a positive integer.
Bug: T258662
Change-Id: Icd83ec2fb6f08c7b68524295cd8b8b47c3bc6d92
Add the possibility for fields in the 'checkboxes' area of the
edit form to set the OOUI invisibleLabel property. Also set
this property for the Watchlist Expiry field.
Update the vertical alignment of fields within the 'checkboxes'
area to ensure they all line up in the middle.
Bug: T260759
Change-Id: I60a9851c780ade275af746714ceb1ce702137037
Update watchlist expiry language indicators (dropdowns, tooltips, watch
via star, watch via edit):
* Change "Permanently" to "Permanent"
* Change "XX days left" and "Expires in X days" to "XX days left in
watchlist"
* Update the "Click.." sentence by star to "Click to remove it."
* Change watch period for a page that is less than "1 day left" to "A
few hours left"
Bug: T253135
Bug: T255632
Change-Id: I114c6f77e86ad81b1810fedcd49f52c88700ca16
The distinction between the two was lost several years years ago
when the "position top" queue ceased to be a thing. Since then,
the two have been loaded and executed together in the same batch,
and are doing similar things.
mediawiki.page.ready is publicly used in several places
as dependendency, but mediawiki.page.startup is entirely internal
to core, which makes it the easier one of the two to dissolve.
Keep an alias for two weeks for cache compat to avoid console
warnings about unknown modules. Although even some cache still
refers to it, this is harmless since the errors are recoverable
and the correct module was also loaded by the cached pages
already.
Bug: T260210
Change-Id: Ic418c23a7400abba22fd07b17f173d3c5f1d1d10
Follows-up a7952a8128 (I50aeafd57771).
If they need to run in a certain order, can we just do that?
Bug: T64878
Bug: T260210
Change-Id: I3c3f3b9fe87d97c7c156b8810f155a17242ce40d
Unlike other similar pages such as Special:MovePage, the reason field
and checkboxes are not always present here. Notably they will not exist
when navigating to Special:Undelete/existingpage or when the user has
permission to see/browse deleted revisions but no permission to undelete.
When the widget does not exist because of these server-side checks,
attempting the JS infusion will lead to a 'Widget not found' error.
Bug: T259916
Change-Id: I54be770f229cdacfae81d10fccd3cf2931df3a27
For easier searching, add the matching tooltip-ca-* variants
of the watching messages.
Bug: T253135
Change-Id: I286372a608d79e34404a62a3a4487bdaf2e95017
Translate the selected watchlist expiry period in the watchlist pop-up success
message.
Bug: T259009
Change-Id: I4d2fb01cf7a15558100077d6cc8aac2fddd01246
* Expiry dropdown will not reset when `Watch this page` checkbox
is changed.
* Dropdown stays in sync with selected values if user starts
watching via the star.
Bug: T259060
Change-Id: I96da6bfd7856e8c4c6326377279eec4d32624df8
Add text to indicate remaining days for temporarily watched items in
the Special:EditWatchlist page. Add ascending sorting by expiration
date. Display the items that will expire soonest at the top.
Bug: T250214
Change-Id: I9aba8cccc2ef75c59b78008723d0ae76d853c5f2