Commit graph

3158 commits

Author SHA1 Message Date
Translation updater bot ee950bc20f Localisation updates from https://translatewiki.net.
Change-Id: Ic14dd7937957b45be15d25f0babcc559bf4c04df
2022-03-07 08:12:00 +01:00
Reedy 07c823679c Use namespaced EventLogging class
Change-Id: Ia5a0ba6846ee1bd6a5436e003d65be955a06d565
2022-03-06 16:15:32 +00:00
jenkins-bot 5f13929858 Merge "Remove unused jquery.wikiEditor.html file" 2022-03-04 20:42:09 +00:00
jenkins-bot 03e541cb48 Merge "Remove unused messages and commented-out code" 2022-03-04 20:32:34 +00:00
Thiemo Kreuz dbb6583bbb Streamline smaller pieces of JavaScript code
The main idea is to make the code shorter and easier to read.

One notable change is to use .test() for boolean tests instead of the
actual .match() function.

Change-Id: Ic43442b75f839906b644d4586c907601f4d5d521
2022-03-04 09:22:07 +00:00
Translation updater bot 2982ffcaeb Localisation updates from https://translatewiki.net.
Change-Id: I23fed73d0f651133fe15e9bfc4c44bc0b7bd9c4b
2022-03-04 08:30:46 +01:00
Timo Tijhof 90e6ccaced Remove unused jquery.wikiEditor.html file
Has sat there since the first commit in 2010 (r73055), but not used.
I imagine it was was a design prototype at some point.

Also fix a few minor eslint warnings about line length, and remove the
one-off "ext-" prefix and capitilised "WikiEditor" CSS class name that
the rest of the repo doesn't use.

Change-Id: Id0eeb456fffdb490a6a86974288e57099e53ce71
2022-03-03 15:27:18 +00:00
Translation updater bot 06ceb65228 Localisation updates from https://translatewiki.net.
Change-Id: I312aacac818edb605b963388aed361f182edab86
2022-03-03 08:23:21 +01:00
Sam Wilson 2aa9e1d298 Remove unused messages and commented-out code
It looks like `wikieditor-loading` was already commented out in 2010:
9d278e8dee%5E!/#F114
and I couldn't find any usage of `wikieditor-toolbar-loading`.

Change-Id: I07988643ca502dcbd7c3208fb803a84003947d5e
2022-03-02 02:40:05 +00:00
Sam Wilson fff7cd6ba1 Allow tool.element to be a function
This adds support for the new 'element' tool type to be a function
which returns the HTML for the toolbar widget. It means that it's
possible for the element to access the WikiEditor context object.

Bug: T286759
Change-Id: I6af12075b96d480639f2fc0d97333a6142480c02
2022-03-02 10:08:54 +08:00
Translation updater bot fc768ba3c4 Localisation updates from https://translatewiki.net.
Change-Id: I3145cdbdd27282d98b48cac6d2d2519b70bbff1d
2022-02-28 14:29:46 +01:00
Translation updater bot 7f04dde774 Localisation updates from https://translatewiki.net.
Change-Id: I0a110ec3f01759acf8af96553fceb34f7900d87c
2022-02-25 09:46:27 +01:00
jenkins-bot 833a5f2c46 Merge "insertlink: Set url mode of title field when switching between modes automatically" 2022-02-25 05:35:22 +00:00
Translation updater bot d47fe43d16 Localisation updates from https://translatewiki.net.
Change-Id: I68902cd40cb95a9d363b47d81c34ab01b56d0b7b
2022-02-23 08:19:42 +01:00
Func fbecf46511 insertlink: Set url mode of title field when switching between modes automatically
Logic under LinkTypeField.setIsExternal() wouldn't emit events about
selection changes, at the mean time TitleInputField.setUrlMode() would
call setIsExternal() and handle everything correctly.
setTouched() is moved forward to actually prevent value being overwritten.

Bug: T302196
Bug: T302201
Change-Id: I5662556394a539073ebf0a17743a260a9d8b0c8c
2022-02-22 15:33:04 +00:00
Ed Sanders d1dc65cfd5 Remove unused deprecated module "jquery.throttle-debounce"
Change-Id: I76a43af8d67768622e6cc0e0d3a059027a5a232f
2022-02-22 01:08:45 +00:00
Translation updater bot b437863971 Localisation updates from https://translatewiki.net.
Change-Id: I8b249db50ae71ba2a6b2023727273d0e875a5091
2022-02-21 08:17:17 +01:00
Translation updater bot 3fa6f08409 Localisation updates from https://translatewiki.net.
Change-Id: If9fe790be7f6f5735fd85d5af9d07a59391a5103
2022-02-16 08:13:45 +01:00
jenkins-bot 90ac830640 Merge "Misnamed field on a/b test logging" 2022-02-12 20:36:53 +00:00
David Lynch 9c6dee2372 Misnamed field on a/b test logging
Bug: T301497
Change-Id: I9469ec8b6e745ae9181e5ffe21036f2de417680a
2022-02-11 19:58:16 -06:00
jenkins-bot 1418002309 Merge "Improve DiscussionTools a/b test bucket logging" 2022-02-12 01:38:32 +00:00
jenkins-bot 802dd69c50 Merge "Check for disabled button in click handler" 2022-02-11 22:26:43 +00:00
Sam Wilson 64d5613172 Check for disabled button in click handler
For some reason, even though jQuery UI dialogs know about their
own buttons, they don't know if the buttons are disabled. This
means that it's still possible to submit the dialog when a button
is disabled.

This change (which is mostly whitespace) adds a check in the click
handler to return early if the 'insert link' button is disabled.
It also gives this button a class name, and so simplifies the other
place that refers to the button.

Bug: T298596
Change-Id: I39fea13b1874f851a68cf08243b3e7ccd355d775
2022-02-11 22:53:13 +01:00
David Lynch 9c478c9290 Improve DiscussionTools a/b test bucket logging
Make sure it works on pages which don't trigger DT, such as full-page
wikitext editing.

Bug: T301497
Change-Id: I244381ee9e47bd3119e341cddb42e2ab38add4a8
2022-02-11 15:41:53 -06:00
jenkins-bot 4a1caf3390 Merge "Add 'element' type for toolbar tools" 2022-02-11 21:23:49 +00:00
Sam Wilson 5c9d867847 Remove out of date invalid link alert
The alert text is now added as a red message under the form field
for the link target text, and there's no need to have an additional
alert because the dialog's insert-link button can't be clicked
while there's an invalid internal link anyway.

Bug: T298596
Change-Id: Ib536b51baae24a6cfe7a7426d039fdf11c4cb150
2022-02-11 15:49:12 +08:00
Translation updater bot 8e05e5d8d0 Localisation updates from https://translatewiki.net.
Change-Id: I8d0af9dbc6d5f230e77c125afaeb9594370f1555
2022-02-09 08:13:21 +01:00
Translation updater bot 05eabda0f7 Localisation updates from https://translatewiki.net.
Change-Id: I4ab02239aec3dd1ee6dd4149aa79e22f2e5629a8
2022-02-08 08:29:11 +01:00
jenkins-bot 84f26ccfd2 Merge "Properly disable insert-link button" 2022-02-08 04:21:55 +00:00
Sam Wilson 2d58366710 Add 'element' type for toolbar tools
In addition to button, toggle, and select, add an element type of
tool which can be used to insert any HTML content.

Bug: T286759
Change-Id: Ia193308a076a7eaa010269ea0dd7b707c774561d
2022-02-08 10:33:54 +08:00
Ed Sanders 7fea791042 build: Update eslint-config-wikimedia to 0.21.0
Change-Id: I87bca80d107c965296af74e16961cd855d72b806
2022-02-07 17:27:27 +00:00
Translation updater bot 07f1703a5d Localisation updates from https://translatewiki.net.
Change-Id: Ibc3fbad894f18d0ea73a220951ff43374b38f10d
2022-02-07 08:23:12 +01:00
Reedy 51c3fe42bd Swap to AutoloadNamespaces
Change-Id: I4eb121b4e81b4ec4833ce0bea81ae041abbdacc9
Follows-Up: I0be9b88accafce97f7e9b7524ec740fb576fa11c
2022-02-06 13:55:54 +00:00
Translation updater bot 60a7383e47 Localisation updates from https://translatewiki.net.
Change-Id: Id0b57e3524d6840e5cf91ae137b73216ba27eba7
2022-02-03 08:44:48 +01:00
David Lynch fda6c3c117 New bucket for abtest data
Bug: T291308
Change-Id: I7aa47139e3fe552833798d6b8daacc1b30517915
2022-02-02 15:50:21 -06:00
Translation updater bot 259d826bdc Localisation updates from https://translatewiki.net.
Change-Id: I68fe3156fc2e9631fb24856fd8a169a653aa206e
2022-01-31 08:22:50 +01:00
Translation updater bot 8057a604ba Localisation updates from https://translatewiki.net.
Change-Id: Ibf6cdb0c4f312a9b87a90467164d4d3d9967ce0c
2022-01-27 08:39:35 +01:00
Translation updater bot 4477ceba08 Localisation updates from https://translatewiki.net.
Change-Id: Idc8a9e50aad74b7b823760f6704eee3f50e0379b
2022-01-20 09:18:20 +01:00
Translation updater bot f0de643a18 Localisation updates from https://translatewiki.net.
Change-Id: Iff81b77eeea259df00c0a4b541b70ca2b1d9782b
2022-01-18 08:11:32 +01:00
Translation updater bot e81202a68b Localisation updates from https://translatewiki.net.
Change-Id: I88417d81d97b974aba8591b8e85f4649023599f7
2022-01-17 08:13:22 +01:00
Sam Wilson 739b93310d Properly disable insert-link button
Use jQuery UI's proper button disabling system, rather than trying
to set attributes manually.

Also remove the alert which used to show when trying to insert a
blank link target, as it now has no use. The functionality was
removed in I3541f438fad9b7e0bf23ead2f2e164e84565d254
when the insert-link button was changed to always disable when an invalid
link was being attempted, but the alert was not noticed at that point
(and nor was this disabling bug).

Bug: T298596
Change-Id: I17c454d6ba336abd0b4eeee0d7166fdf81d25734
2022-01-10 15:35:04 +08:00
Translation updater bot c9c494d65e Localisation updates from https://translatewiki.net.
Change-Id: I161bb19905da3c4aef90b7e3ea6d1badbffc9a18
2022-01-04 08:28:28 +01:00
Translation updater bot 2e5791ca32 Localisation updates from https://translatewiki.net.
Change-Id: Idb668ed1e26c89828c05e956e1219a2c2eb0547c
2021-12-27 09:31:20 +01:00
Translation updater bot b5170d1be1 Localisation updates from https://translatewiki.net.
Change-Id: Ia826b11b69a04c7934762ce67cd2175b5144b3b8
2021-12-24 09:10:08 +01:00
Translation updater bot af7eb136db Localisation updates from https://translatewiki.net.
Change-Id: Ie69858660fbfc18856f28a0d4dd728919677ae0e
2021-12-23 08:38:42 +01:00
jenkins-bot 1e95619723 Merge "Set link type radio when confirming looks-like internal" 2021-12-21 19:51:38 +00:00
Translation updater bot c5e00b179c Localisation updates from https://translatewiki.net.
Change-Id: Ie9cc55b345c61ba17ba43011d7151aae9f90cd64
2021-12-20 08:21:54 +01:00
libraryupgrader b47f4d3c57 build: Updating mediawiki/mediawiki-phan-config to 0.11.1
Change-Id: I956a27fd44aad86b10eb76056b88c1e824f91c01
2021-12-19 10:51:56 +00:00
Translation updater bot 4a2e1a7d6b Localisation updates from https://translatewiki.net.
Change-Id: I382b6cb38c267a710e456a07917bebe913fa63a1
2021-12-14 08:43:15 +01:00
jenkins-bot 9a065b82ee Merge "build: Load ConfirmEdit as phan dependency" 2021-12-13 09:48:13 +00:00