Commit graph

2772 commits

Author SHA1 Message Date
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
Translation updater bot 62bdbd882c Localisation updates from https://translatewiki.net.
Change-Id: I0b9e97877fd03618155c40eb825e42ba6f63ab3a
2021-12-13 08:22:27 +01:00
Translation updater bot ec5acd8e2e Localisation updates from https://translatewiki.net.
Change-Id: I862505b8377c53d797b4fdea2f44bc6e3aea2513
2021-12-10 08:25:18 +01:00
jenkins-bot 0fe853a748 Merge "Move insert-link mode constants to a better location" 2021-12-09 20:13:04 +00:00
Translation updater bot bdb4f1c20a Localisation updates from https://translatewiki.net.
Change-Id: If3b2b87cfb360a4d2e2fdb55be27e0a5820cdd37
2021-12-09 08:23:13 +01:00
jenkins-bot 2df343929c Merge "Fix link-inserter event value when dialog opens" 2021-12-08 22:33:47 +00:00
Translation updater bot 6645b555be Localisation updates from https://translatewiki.net.
Change-Id: I5888be33123bb8eb1947da43c6f0428aa87d171b
2021-12-08 08:13:02 +01:00
Sam Wilson dd1173de39 Set link type radio when confirming looks-like internal
When closing the alert that appears when a link looks like an
internal URL, the link target text was changed but the radio
button was not. This patch rectifies this.

Bug: T295517
Change-Id: Ie0339f3aac8ccfd118c604602ce638539ff67e03
2021-12-08 14:34:11 +08:00
Sam Wilson b8a4fcc998 Fix link-inserter event value when dialog opens
When the insert-link dialog is opened, a change event is manually
fired in order to get the system in sync. This is not optimum,
but until we refactor jquery.wikiEditor.dialogs.config.js it's
a simple way to do it.

The issue was that this manual event was being given an empty string
as the title value, but it should've been the actual current field
value. The reason it's not the same is that when the dialog is
closed with the cancel button, the state of all the fields is not
reset (this is a long-standing design feature of the dialog).

Bug: T293167
Change-Id: I8e2a0a5169b5d2a6d706623dc0c879469acd9afa
2021-12-08 10:00:48 +08:00
jenkins-bot 1072dcc27c Merge "Tag WikiEditor edits with a hidden tag" 2021-12-07 23:58:30 +00:00
Ed Sanders b4f144057e Tag WikiEditor edits with a hidden tag
Bug: T249038
Change-Id: Ia4267bc430ba0f12cce496ebf6f8c1773ae355a6
2021-12-07 23:30:27 +00:00
Sam Wilson b296fc3578 Move insert-link mode constants to a better location
Also capitalize them and don't keep them in an array.

The data values for the radio buttons are also removed, because
they're not used for anything.

This is a follow-up to Ie40e8bdebe6f1330fc75ea1861f120e51ad58224.

Bug: T293168
Change-Id: I2f6de07f6f82e9e59ab67c771fcd60a68ad577dc
2021-12-07 16:39:11 +08:00
jenkins-bot 86f4001ff3 Merge "Prevent external links from showing as invalid" 2021-12-07 06:14:02 +00:00
Sam Wilson d96435cd18 Prevent external links from showing as invalid
* When the link target text is changed, only change the URL mode if the user
  hasn't explicitely set the type (internal/external).
* Improve the conditions for the display of the 'external' and 'exists'
  link-target messages.
* Validate the link target (i.e. show messages) not only when the text is
  changed but also when the target type radio is changed.
* Rename the TitleInputWidget.isExternalLink() method to
  looksLikeExternalLink(), to make its purpose clearer.

Bug: T293168
Change-Id: Ie40e8bdebe6f1330fc75ea1861f120e51ad58224
2021-12-06 15:24:04 +08:00
Translation updater bot 6d9830bf36 Localisation updates from https://translatewiki.net.
Change-Id: I0df722ff6f296f1b59398912a841ed91e2904ab0
2021-12-06 08:20:33 +01:00
Translation updater bot 6be5553f7d Localisation updates from https://translatewiki.net.
Change-Id: Iaeaf739433db99ad359d684864c10c68c08422e5
2021-12-02 08:42:20 +01:00
jenkins-bot fb1fcfd19e Merge "Add new 'secondary' toolbar section" 2021-12-01 22:45:19 +00:00
Translation updater bot 648a9543b6 Localisation updates from https://translatewiki.net.
Change-Id: I14ae56c0c1d6703e7b31d24d682bd75b497be9f7
2021-12-01 08:15:47 +01:00
Sam Wilson 94569125a7 Add new 'secondary' toolbar section
Add a new top-level section to the right side of the toolbar,
containing a single (empty) 'default' group.

Bug: T296447
Change-Id: If88789f20420f02c729122392e16509bbc5ae7d0
2021-12-01 11:19:41 +08:00
Translation updater bot 987e3d1d04 Localisation updates from https://translatewiki.net.
Change-Id: I404f512972cddff9234f1a3a414109d08644a0ff
2021-11-30 08:22:38 +01:00
Sam Wilson 79a0d3040e Disable link-insert button if target is empty
Set the opening state of the insertion button (in the insert-link
dialog) to disabled, and also disable it whenever the target field
is empty. This makes it unneccessary to show an alert when trying
to insert a blank target so that code is removed.

Bug: T293167
Change-Id: I3541f438fad9b7e0bf23ead2f2e164e84565d254
2021-11-26 12:45:48 +08:00
jenkins-bot 7fbd917c15 Merge "Use HookHandlers, implement hook interfaces and inject services" 2021-11-25 22:02:37 +00:00
Fomafix 0d4d037968 Use HookHandlers, implement hook interfaces and inject services
The static function WikiEditorHooks::editPageShowEditFormInitial is
kept for compatibility because there are usages in other extensions.

Change-Id: I7ba9f56fd3d00d575696f00f9f1c868fa7ad223b
2021-11-25 19:12:16 +00:00
Translation updater bot f3c2a8a35e Localisation updates from https://translatewiki.net.
Change-Id: I1a0d9bbd808f9a2439160b03247cfd19e37164cc
2021-11-25 09:02:52 +01:00
Translation updater bot 6897b9ef58 Localisation updates from https://translatewiki.net.
Change-Id: I508e9ba84579d38918722a3ef2437d57823837db
2021-11-24 08:22:45 +01:00
jenkins-bot e9121b2d1c Merge "Fix bug when target looks like internal link" 2021-11-24 01:49:29 +00:00
Umherirrender c062d047ce build: Load ConfirmEdit as phan dependency
Bug: T296287
Depends-On: I549a97923fe994820358c65ee1cd725f6d9bba1a
Change-Id: If45b296a24e86d7ef6c581b3d822eb0adfa1f245
2021-11-23 19:30:25 +01:00
Alexander Vorwerk 538e543a32 Fix namespace for ConfirmEditHooks
ConfirmEdit should be added as a phan dependency, so thing like this no
longer happen in the future.

Bug: T296287
Change-Id: Ic9942b3a6d872c0d3c0e3a53d9462df6f82b06c6
2021-11-23 12:09:44 +01:00
Translation updater bot 5d7b92a023 Localisation updates from https://translatewiki.net.
Change-Id: Iba2243880e1f049d6fb404a6a50e3f576039661d
2021-11-22 09:04:01 +01:00
Fomafix 4da6f5b3b5 Use namespace MediaWiki\Extension\WikiEditor in PHP
Change-Id: I0be9b88accafce97f7e9b7524ec740fb576fa11c
2021-11-20 09:30:11 +00:00
jenkins-bot c820a43220 Merge "Add live-preview logging" 2021-11-20 04:47:40 +00:00
jenkins-bot 8a4c9a2077 Merge "Add logging for non-live previews" 2021-11-20 04:46:03 +00:00
Translation updater bot 1cc508d876 Localisation updates from https://translatewiki.net.
Change-Id: I78631e3f154934d99d320f73928b53a71a90d4e7
2021-11-19 08:28:54 +01:00
Translation updater bot c4e6ecb0f1 Localisation updates from https://translatewiki.net.
Change-Id: Ie5f928f439804767d853edb99df82c4112f14be5
2021-11-18 08:42:40 +01:00
Sam Wilson 3f275059df Add logging for non-live previews
This isn't strictly WikiEditor business, but other logging is done
here, and soon real-time previewing will be built in WikiEditor,
so it makes sense to keep all the logging for the different types
of preview together.

Bug: T290521
Change-Id: If42697e43c1bec95d743244d0acf96c47df8b681
2021-11-18 08:24:37 +08:00
Translation updater bot 2e99579930 Localisation updates from https://translatewiki.net.
Change-Id: I5b068748310886e4fae1044170b77542ef6ec290
2021-11-17 08:31:11 +01:00
Sam Wilson a70bd3876e Fix bug when target looks like internal link
Refactor the code for selecting the first match, so it can also
be called from the look-like button method — this will be changed
once the whole link-inserter dialog is OOUI.

Bug: T295517
Change-Id: I56b289dbf07707b0391b263464bdfd6307142574
2021-11-17 09:27:34 +08:00