Commit graph

9413 commits

Author SHA1 Message Date
Translation updater bot 530d911dd5 Localisation updates from https://translatewiki.net.
Change-Id: I17eb6510ad35f8e60f892b10b4430432601b08ec
2016-08-02 22:47:12 +02:00
Translation updater bot a27b270255 Localisation updates from https://translatewiki.net.
Change-Id: I7df748d430e3d52796e3af6677bf7e8060375df1
2016-08-01 22:37:52 +02:00
jenkins-bot af13aae426 Merge "Fix z-index issue on floating toolbar dialog" 2016-08-01 16:42:16 +00:00
Ed Sanders 8d17509031 Blacklist <time> annotation pasting in MW targets
Change-Id: Idef20f604023efa767c7510ed768c6f80e472559
2016-08-01 15:53:56 +01:00
Alex Monk 7f39d4e75d Use .textSelection( 'getContents' ) instead of .val() to get the value of #wpTextbox1
To allow gadgets like wikEd to use textSelection to return the latest value.

Bug: T135747
Change-Id: Ie353cf547dea6c100c5f01ab56c9b415be1ffdb8
2016-07-31 21:58:51 +01:00
Translation updater bot 84503e0a81 Localisation updates from https://translatewiki.net.
Change-Id: Ie71b6de35192c13339a0dec1aaa2a63d7cb753f4
2016-07-31 22:27:57 +02:00
Translation updater bot 981e878b5d Localisation updates from https://translatewiki.net.
Change-Id: If757b58ee8fff6962e1e5fc3fe338107103fbc95
2016-07-30 22:33:35 +02:00
David Lynch 53ad07ed72 MWLinkAnnotationInspector: change where auto switch to external occurs
OnInternalLinkChange happened post-validation, and received an already title-
normalized version of the href. Thus `file://` would become `:File://`. As
such, hook up to the raw internal link input change event, and judge what the
user actually entered.

Bug: T138956
Change-Id: I0f9f3de3b7bf6e5430e55fa69626522b0c74296a
2016-07-28 11:00:36 -05:00
jenkins-bot 11695a8528 Merge "MWLinkAnnotationInspector: switch to external tab on any schema" 2016-07-28 03:35:18 +00:00
David Lynch a95e6cab08 MWLinkAnnotationInspector: switch to external tab on any schema
Currently the switch only happens if it's a valid schema. Instead, switch if
any schema at all is detected, so we can tell the user it's invalid. If they
really meant to link to an internal wiki-page that just happens to start with
a "schema://", they can switch back to the internal tab to force it.

Bug: T138956
Change-Id: Icfd74157fd8439920668a417661265ddd52c9a21
2016-07-27 17:10:52 -05:00
Translation updater bot 2871ef41bc Localisation updates from https://translatewiki.net.
Change-Id: I73b1a6f72561397b8cacf798b7b877f09ba0bfb4
2016-07-27 22:40:42 +02:00
Translation updater bot e7e1ce91e9 Localisation updates from https://translatewiki.net.
Change-Id: Ib0e0dc671cdb6ada07657429ebcac1fa31a321b8
2016-07-26 22:57:37 +02:00
Ed Sanders 6064eb3dc4 Fix preview to use a valid document slice
An inline content node must exist inside a content branch node (paragraph).

Bug: T141306
Change-Id: I6bf2f99938940c1a5e34db16fbe582b15991a7c6
2016-07-26 16:06:07 +01:00
Roan Kattouw 5483b25657 Reduce mayhem caused by ?oldid=currentRevId
If you viewed a page with an ?oldid= query parameter set to the ID
of the current revision, some parts of VE would believe we were
in oldid mode (because there's an oldid present), but others
wouldn't (because the revid we're editing equals the newest revid).
This caused bugs when opening the editor a second time after saving
(which is normally impossible to do after an oldid-mode edit, because
we navigate to a new page after an oldid save, but we don't do that
in this case).

Ensure that:
* The internal state of DesktopArticleTarget is updated correctly
  after saving in this case
* The ?oldid= parameter is removed from the URL after saving
* DesktopArticleTarget.init doesn't preload the article HTML
  on a second/subsequent editor load: this causes issues because
  it caches the oldid, and generally speaking the Target's internal
  state is not considered

Bug: T141330
Change-Id: I74034328797c59f7249f1f6f4f53a92ee1c26334
2016-07-25 20:04:47 -07:00
Translation updater bot 519cdb2c34 Localisation updates from https://translatewiki.net.
Change-Id: I70c9b99aec2170e4634b369348f0b9bc668bd5e6
2016-07-25 22:26:36 +02:00
Ed Sanders d86bdccf89 Only apply font fix to global overlay
Bug: T141262
Change-Id: I6a99eefc683bb72c79bf13de2a1f89c37c443310
2016-07-25 14:48:49 +01:00
Translation updater bot a8dfd811ac Localisation updates from https://translatewiki.net.
Change-Id: I4282b43db782928122f4562cd3f9d07e284a4c56
2016-07-24 22:26:36 +02:00
Translation updater bot 392a67134c Localisation updates from https://translatewiki.net.
Change-Id: I76baa57bfcb3ad9c773f125390fc3232c1eb90ec
2016-07-23 22:28:33 +02:00
Translation updater bot ec39ae9cda Localisation updates from https://translatewiki.net.
Change-Id: I62ac51cb828ac616bb7000bbec38deb0af504681
2016-07-22 22:43:35 +02:00
Translation updater bot 874fdae6e7 Localisation updates from https://translatewiki.net.
Change-Id: I640d1db416d3a4d586b2a2b14ab90449b51144aa
2016-07-21 23:02:36 +02:00
jenkins-bot 522b3498ce Merge "MWGalleryDialog: Add new 'slideshow' mode" 2016-07-21 00:54:08 +00:00
Translation updater bot abce5019b1 Localisation updates from https://translatewiki.net.
Change-Id: I848446feb5d49c7e1d5e63c6d458a34ea8588aa4
2016-07-20 22:43:27 +02:00
David Lynch e9b99d8181 MWSaveDialog: Give checkboxes a class based on their origin's name
Bug: T138631
Change-Id: I2c31becd57c7988c4dd26c09ee01b4f7820c7aaa
2016-07-19 11:21:36 -05:00
Translation updater bot 3da7110f0c Localisation updates from https://translatewiki.net.
Change-Id: Ia0845ba1cde9cac124cd0a72767657798cc9fbda
2016-07-18 22:31:44 +02:00
jenkins-bot 53cd8923d0 Merge "Pass ve.dm.Document to addSurface as documented" 2016-07-18 16:04:47 +00:00
jenkins-bot 6b17cf7194 Merge "Move internal-link detection into the InternalLinkAnnotationWidget" 2016-07-18 10:30:44 +00:00
Ed Sanders e50aa6fa34 Pass ve.dm.Document to addSurface as documented
Change-Id: Ic4ef3763e20d0f954e21dd651309b0e9eee65fd2
2016-07-18 11:13:54 +01:00
Translation updater bot e9c281b888 Localisation updates from https://translatewiki.net.
Change-Id: I116e6522473e9bf2dc4b271814cc130dbd0a1781
2016-07-16 23:01:07 +02:00
David Lynch ef7652fdfc Move internal-link detection into the InternalLinkAnnotationWidget
If internal link detection is in the LinkAnnotationInspector, it falls down
when a valid URL which isn't also a valid page title (e.g. percent-encoded
titles) is pasted into the input. This is fixed by moving the detection to the
input's change handler before any validation can occur.

Bug: T119431
Change-Id: I1eb2040dd918fdcc22c28594b5cbad835cf384a8
2016-07-15 13:51:35 -05:00
Translation updater bot c075a17ff7 Localisation updates from https://translatewiki.net.
Change-Id: Icbbe4dd32dde654210f33986191aec614d643155
2016-07-14 23:28:50 +02:00
jenkins-bot c3ab6950bc Merge "DAT.init#setEditorPreference: Change section edit alongside tab labels" 2016-07-14 16:26:02 +00:00
Translation updater bot 015d63d560 Localisation updates from https://translatewiki.net.
Change-Id: I9db5b8d2e755f39039728b7e2a8ccc4a24cd48b1
2016-07-13 22:39:26 +02:00
jenkins-bot 773c13f9d6 Merge "Avoid trying to load unregistered modules" 2016-07-13 15:40:09 +00:00
Ed Sanders 2d23f247f0 Avoid trying to load unregistered modules
Ideally we would get an exception when trying to load
a non-existent module, but there is no difference between
a genuinely missing modules, and one which just doesn't exist
on this target (e.g. a desktop-only module on mobile or vice-versa).

This stops mobile VE from crashing every time a desktop-only
module is added to VE plugins.

Change-Id: Ia9ac0dd21b26c54ad779c6f499e68786c34ec873
2016-07-13 15:21:25 +00:00
Volker E 6fff13b898 Fix z-index issue on floating toolbar dialog
Fixing `z-index` issue of floating toolbar dialog not overlapping when
Special Character dialog is active.

Bug: T140237
Change-Id: I24e9ed5b1f65c6ea4cffbd408953623540542bca
2016-07-13 16:16:08 +02:00
jenkins-bot b71160cbd5 Merge "MWGalleryDialog: Don't set blank values for width, height" 2016-07-12 22:32:38 +00:00
Thalia 84919b253b MWGalleryDialog: Don't set blank values for width, height
If width or height attributes are left empty in the form,
they are now undefined in mwData.

Bug: T140094
Change-Id: I76dadbd07a89ce762e42ce714f364ce74a9cc1f0
2016-07-12 22:14:59 +01:00
jenkins-bot 4675e7968b Merge "Use transition timing from OOUI theme config" 2016-07-12 21:10:23 +00:00
Translation updater bot 4acd8d74e2 Localisation updates from https://translatewiki.net.
Change-Id: Ic438c7b39d1ad455477e05959aa8448579047013
2016-07-12 22:53:51 +02:00
James D. Forrester 96ba688a87 MWGalleryDialog: Add new 'slideshow' mode
Change-Id: I73052def5e8c082f27606b2ff094834fd5d11908
2016-07-12 08:08:15 -07:00
Ed Sanders c645295bee Fix vertical positioning of progress bar
Bug: T140029
Change-Id: I5b38d375559449eded559e4443131516b1937b6d
2016-07-12 15:56:50 +01:00
Ed Sanders 12e1de2a76 Use transition timing from OOUI theme config
Depends-On: I00eaa2b815d7c76b6315a3993a9a7921ae503c00
Change-Id: I37098e085c4ee49050d448bed8821d3c0f6ec449
2016-07-12 13:28:33 +01:00
Translation updater bot 4d0d8cb659 Localisation updates from https://translatewiki.net.
Change-Id: Ie87cd1cc30c7a72fd38600742264199cea405681
2016-07-11 23:00:35 +02:00
Translation updater bot 1e3c8d27aa Localisation updates from https://translatewiki.net.
Change-Id: I637cbd4e108cf2ae61fd8f91716c4ab67e2e1491
2016-07-10 22:24:58 +02:00
Translation updater bot 75ebe14ca9 Localisation updates from https://translatewiki.net.
Change-Id: Ib538c282aacbf2099245e6894016beb9625c20e5
2016-07-09 22:56:29 +02:00
Translation updater bot c5d9d74152 Localisation updates from https://translatewiki.net.
Change-Id: Id73fac906e566b859a3c936b4009e329ef15984d
2016-07-08 23:12:43 +02:00
Translation updater bot b3c24f620d Localisation updates from https://translatewiki.net.
Change-Id: I3ccef04f9a8d43792438cbe2cf20e1b3ccab32d7
2016-07-07 22:40:56 +02:00
Translation updater bot 9de8c610b7 Localisation updates from https://translatewiki.net.
Change-Id: I948ab5c4883cac54fe12f91415180854d0ecbd2a
2016-07-06 22:32:18 +02:00
jenkins-bot 67ca0bd32b Merge "Check surface exists when triggering toc rebuild" 2016-07-06 17:56:58 +00:00
Thalia 3e911ba266 Make gallery dialog caption field multiline
Also change remove button label from "Remove" to "Remove image".

Bug: T139421
Bug: T137982
Change-Id: I1b11eb44c672bad0d53d139d66e796a0657457f5
2016-07-06 17:24:12 +01:00
Ed Sanders 066f82f4b1 Check surface exists when triggering toc rebuild
Bug: T139205
Change-Id: I9cc01c3dc2e9bcd822d5498b2a95d01cc4e82953
2016-07-06 17:12:51 +01:00
Translation updater bot fd191b60ec Localisation updates from https://translatewiki.net.
Change-Id: I240da96b82985a2958ff397847577644f02433dc
2016-07-05 22:36:10 +02:00
Translation updater bot 5a0b12bfb4 Localisation updates from https://translatewiki.net.
Change-Id: I92e686fa6e7018b506629fc857fb951f72e84447
2016-07-04 22:35:04 +02:00
jenkins-bot f1bb251814 Merge "Ensure widgets are always torn down when categories page is closed" 2016-07-04 07:11:08 +00:00
Translation updater bot 1ab632bdc7 Localisation updates from https://translatewiki.net.
Change-Id: I39ab5850f7191ab2949b90f854087a2aa972de73
2016-07-03 22:42:48 +02:00
Translation updater bot c6e50ba073 Localisation updates from https://translatewiki.net.
Change-Id: Idb134bcdb855feee475ac60ebc4df2aa00ebb23e
2016-07-02 22:55:37 +02:00
Ed Sanders 34135c7643 Ensure widgets are always torn down when categories page is closed
Previously a return statement meant they weren't.

Bug: T139196
Change-Id: Ic7bc14a929430ac6e9d2546fc9e1a1a02635ca77
2016-07-02 17:38:53 +01:00
Translation updater bot a707459c17 Localisation updates from https://translatewiki.net.
Change-Id: Id47ab520f2d4247ed4ed6fac1371c640cea05d15
2016-07-01 23:29:42 +02:00
jenkins-bot 4a7f208e53 Merge "Hack to not show menu immediately upon meta dialog opening for redirect change" 2016-06-30 21:35:21 +00:00
Alex Monk 134a35ad1a Hack to not show menu immediately upon meta dialog opening for redirect change
Bug: T137309
Change-Id: Iba22b909e8208d2a314de8313db9d910410c9a1d
2016-06-30 20:49:23 +01:00
Ed Sanders 40d606abdc Test removing all table classes
Bug: T138896
Depends-On: I2698428f0aa69e2dcec2680efed44d064bf6e542
Change-Id: I5df5d51fc5b69df6eae40ac29f6b82f446b26ae8
2016-06-30 17:41:42 +01:00
James D. Forrester d9d6a567d8 Follow-up e2f6d798: Make MWTemplateModel#addPromptedParameters work
Change-Id: I27e82aed207e1352ccb5f5a177fd53d5c1868c42
2016-06-30 16:46:38 +01:00
Ed Sanders 3a4ff4eb5f Make edit tab dialog wider to accommodate long messages
Bug: T138731
Change-Id: I96d0a9e5efbe0b462fc4e13a4fa6008987d749cf
2016-06-30 13:43:58 +01:00
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