Commit graph

9300 commits

Author SHA1 Message Date
Alex Monk 16c38ec27a DAT.init#setEditorPreference: Change section edit alongside tab labels
When our remember-last preference changes work, alongside changing the
label of the edit tab, also change the label of the edit section links.

I seriously have no idea WTF I was thinking back in December when I
put some of this code into #activatePageTarget.

Bug: T137424
Change-Id: I581c0acf0a3ad11ad3bcf4e2e46242907ca9166f
2016-06-30 10:22:44 +00:00
jenkins-bot 750078ab63 Merge "MWTemplateDialog: When opening the dialog, add in any unset suggested and required parameters" 2016-06-29 22:42:25 +00:00
jenkins-bot dc59190e64 Merge "Set an automatic summary of empty string when switching from VE into WTE" 2016-06-29 16:16:57 +00:00
jenkins-bot 0d45972cb3 Merge "Fix our display of redirects during and after editing" 2016-06-29 16:15:43 +00:00
jenkins-bot 913d3c0cf4 Merge "New decodeURIComponentIntoArticleTitle method" 2016-06-29 16:15:41 +00:00
jenkins-bot f0a529085d Merge "Replace section edit click handlers in DAT instead of doing it badly in init" 2016-06-29 12:18:49 +00:00
Alex Monk 984823a77d Replace section edit click handlers in DAT instead of doing it badly in init
If you deactivate without saving (e.g. using the back button), the page
contents aren't replaced and so adding the page click handlers is pointless
and harmful because they will run twice.

This was my fault in Iad1713e1

Bug: T135387
Change-Id: I3c83009bfc0f42125cdcde7f7a51de9bc2f72abf
2016-06-29 03:58:57 +01:00
jenkins-bot 324ae24f98 Merge "Ensure text version of counter is written to external links when copying" 2016-06-28 16:23:50 +00:00
Ed Sanders aeca19c9ea Ensure text version of counter is written to external links when copying
Bug: T137503
Change-Id: Iae791253ea272847984fee5d0586dc302027f1bd
2016-06-27 22:17:58 +01:00
Translation updater bot 02ae82fa05 Localisation updates from https://translatewiki.net.
Change-Id: Ic177c506be7997c21ef36e492c004f0c37117c14
2016-06-27 23:11:16 +02:00
Translation updater bot 3f284194af Localisation updates from https://translatewiki.net.
Change-Id: I3922a5f891d6ce1b139b80b03bb577f87d233b6d
2016-06-26 14:23:53 +02:00
Translation updater bot d4cbb9ad8f Localisation updates from https://translatewiki.net.
Change-Id: I3c5d8addff2af948ce7f8a10e180e7151f957895
2016-06-25 14:57:51 +02:00
Tpt 2a2a041933 Allow extensions to register a specific target per content model
Bug: T138489
Change-Id: Ic9d2fa34b90afc58f7e31adf38f97a701aac64f9
2016-06-24 15:38:28 +00:00
jenkins-bot 4973740ae3 Merge "Make visualeditor-quick-access-characters.json always exist" 2016-06-24 10:04:53 +00:00
Translation updater bot 3bf1beb981 Localisation updates from https://translatewiki.net.
Change-Id: I4481cd584481ee33d3d8fb4403164992ab47053c
2016-06-24 11:18:48 +02:00
Translation updater bot 655a5883c9 Localisation updates from https://translatewiki.net.
Change-Id: I6e137f299d6bcd6e45b2075042c7ce9b9e2e5447
2016-06-21 23:33:27 +02:00
Translation updater bot 20b93019a0 Localisation updates from https://translatewiki.net.
Change-Id: I5495f3720f4aa2ea5c0ae9bac0c58b3cd0090b6a
2016-06-20 22:24:05 +02:00
Translation updater bot c7b8be0cac Localisation updates from https://translatewiki.net.
Change-Id: I5dc81d91e2745a236137a90a85d6bc907d0fb492
2016-06-19 22:46:59 +02:00
Translation updater bot b11b838f6e Localisation updates from https://translatewiki.net.
Change-Id: I7dbad46f1d3d13dff617e7bde9de1d416bc32882
2016-06-18 22:50:50 +02:00
Translation updater bot 3f9c96d891 Localisation updates from https://translatewiki.net.
Change-Id: Ie2060e033c338aa707dace9cae8e15db82ebcbb1
2016-06-17 22:32:55 +02:00
Translation updater bot 4310eef86e Localisation updates from https://translatewiki.net.
Change-Id: I801b0ddb3d0c02aff980d2ef811e71838e4a78bc
2016-06-16 22:31:15 +02:00
Translation updater bot 57dd56591d Localisation updates from https://translatewiki.net.
Change-Id: I2d8d2890bbc2e8151b502efaa2be4f59204f1ef0
2016-06-15 22:42:11 +02:00
Alex Monk 4382e18385 Fix our display of redirects during and after editing
Change-Id: Ib559eb8fb8a2643af25ad8df858212f3e9d14b13
2016-06-15 20:25:59 +01:00
Alex Monk 3bda9a75aa Set an automatic summary of empty string when switching from VE into WTE
So if the user supplies a summary in VE, WTE with the "Prompt me when entering
a blank edit summary" preference won't moan.

Bug: T135979
Change-Id: I0e2d2b6f8fb03bb56d600f1118daf82fb3715b66
2016-06-15 18:37:56 +01:00
David Chan 367bc2437f New decodeURIComponentIntoArticleTitle method
This replaces ve.safeDecodeURIComponent(...).replace( /_/g, ' ' ) . This action
is really specific to the quirks of mediawiki title processing.

Change-Id: Ia9e525c9340e6de9e485355899996c97867ccb48
2016-06-14 23:31:23 +01:00
jenkins-bot c3f38c8758 Merge "Decode encoded link titles when generating them from text" 2016-06-14 21:49:41 +00:00
Alex Monk 9900d42816 On serialization failure, reset document opacity.
In case we were switching to source.
Normally MWWikitextSwitchConfirmDialog#getActionProcess would do this for us,
but this closeWindow call doesn't trigger that, we can't get it by overriding
MWWikitextSwitchConfirmDialog#close either.

Bug: T134333
Change-Id: I66a12ff6d13601250b9d470e1be54fe38a1ef06c
2016-06-13 23:45:43 +01:00
Alex Monk 0659207900 Call child serializeSuccess/Failure in ArticleTarget#serialize
Instead of going straight to ArticleTarget's one.
This causes ve.init.mw.DesktopArticleTarget.prototype.serializeFail
to be called when using that target.

Bug: T134333
Change-Id: I6ec259830178439bc80ea162ba4ad035226022a7
2016-06-13 23:37:27 +01:00
Translation updater bot b517e5dcf1 Localisation updates from https://translatewiki.net.
Change-Id: Ia5bda55b4c1a9e4e0ceb6e7fd1f97be0b15ca3b8
2016-06-13 23:00:04 +02:00
David Lynch cc78cb2d06 Decode encoded link titles when generating them from text
Percent-encoded characters are forbidden in titles. Copying URLs around will
tend to wind up when them percent-encoded when you paste. Therefore, when
trying to build a title from a pasted link, decode it first.

Change-Id: Ia0abcb2d903b04d99c7db16eb0a5962480b138d5
2016-06-13 08:58:54 -05:00
Ed Sanders b104525c8c Blacklist article/section from external paste
Bug: T137441
Change-Id: I9ae85306a3220126462c69e4ea0a2a5e905fffa1
2016-06-13 12:22:10 +01:00
Translation updater bot be355de128 Localisation updates from https://translatewiki.net.
Change-Id: Ia86b578f7b7a5030f084b05c1301ce65bf1104d5
2016-06-12 22:17:49 +02:00
Translation updater bot a3ee677de3 Localisation updates from https://translatewiki.net.
Change-Id: I1082f9833140358ec8b6325bd63c09892ff63716
2016-06-11 22:24:55 +02:00
Translation updater bot 15bfe379a7 Localisation updates from https://translatewiki.net.
Change-Id: I27b1b0ac383019aab40bed9aaa8cebe3b745b166
2016-06-10 22:20:21 +02:00
Alex Monk 28c30a3180 Make visualeditor-quick-access-characters.json always exist
Bug: T137368
Change-Id: I3f0f88495323b74d156c24939ca12840b4b970c5
2016-06-10 17:15:49 +01:00
jenkins-bot 4837373545 Merge "build: Bump devDependencies to latest and make pass" 2016-06-10 09:36:10 +00:00
Translation updater bot 59b2a2ffd3 Localisation updates from https://translatewiki.net.
Change-Id: Ib00f7209a94a45eb7a211bf9528794899e1b90c7
2016-06-09 22:41:09 +02:00
jenkins-bot 896a5c2831 Merge "Make dialog for editing galleries" 2016-06-08 22:34:43 +00:00
Translation updater bot 8bb1c2a16d Localisation updates from https://translatewiki.net.
Change-Id: Id74ef5cc3ad7244581027af1c38e6f4e9cd12def
2016-06-08 22:31:59 +02:00
James D. Forrester 832118e051 MWTemplateDialog: When opening the dialog, add in any unset suggested and required parameters
Bug: T97482
Change-Id: Iaf280355f442240aba4e1f74d3ee402fc5d329b0
2016-06-08 14:19:09 +00:00
Translation updater bot 953422a605 Localisation updates from https://translatewiki.net.
Change-Id: Ibc8094f70202a731d21f954e5bdab8214abc062d
2016-06-07 22:47:17 +02:00
James D. Forrester 5ecf40f51e build: Bump devDependencies to latest and make pass
babel-polyfill              6.8.0  →  6.9.1
 grunt-jscs                  2.8.0  →  3.0.0
 grunt-jsonlint              1.0.7  →  1.0.8
 grunt-stylelint             0.3.0  →  0.4.0
 stylelint-config-wikimedia  0.2.0  →  0.2.2

Change-Id: I4db467c7f2bc291a94e7bab86d18e48a44f6054c
2016-06-07 17:17:02 +01:00
jenkins-bot 6a6d3b9368 Merge "Fix loading bar opacity" 2016-06-07 14:07:48 +00:00
Thalia 6fdbe9fd7e Make dialog for editing galleries
Make new graphical interface for editing existing
galleries and adding new galleries.

NB The dialog does not yet support rich text in the
image captions, nor does it provide separate fields for
e.g. link, alt text, etc. These are dependent on parsing
the text within the tag, which is yet to be implemented
by Parsoid. For now, these attributes should be
specified in wikitext in the image-specific caption
field.

Bug: T45037
Change-Id: I2b4082e991268241a15b9bbd6d85c94cdc2185f2
2016-06-07 13:53:02 +01:00
James D. Forrester 3b304e6f7b i18n: Update reference to the switch button being in a dropdown
Bug: T137137
Change-Id: I950971871b280e46f7cca4c545a7ce9e37202b0a
2016-06-07 10:23:34 +00:00
Translation updater bot fc9a4f70a4 Localisation updates from https://translatewiki.net.
Change-Id: Ib4b67c59fbff35e84c8d07b3a45d3a60ff128c03
2016-06-06 23:00:56 +02:00
Translation updater bot 3af1ddc490 Localisation updates from https://translatewiki.net.
Change-Id: I9c271d5ea6ae3f1a8a5c59bd462c71c1740e2a0f
2016-06-05 22:23:23 +02:00
Translation updater bot 9bdc38b864 Localisation updates from https://translatewiki.net.
Change-Id: Ib899d193506842d6a278f8e89e8672fa64bb9e73
2016-06-04 22:25:19 +02:00
Translation updater bot 50f6f466ea Localisation updates from https://translatewiki.net.
Change-Id: Id7f35b79ccd28a791648bc0b837c2656c6335643
2016-06-03 23:24:56 +02:00
Ed Sanders 61cb539c7b Fix config of mobile surfaces
Change-Id: I0109a93a41b0387199a0424b60a26a415393bc5d
2016-06-03 10:51:42 +01:00