Commit graph

12409 commits

Author SHA1 Message Date
Aaron Schulz 693b28a4bb Use debug() for stash messages to match core
Change-Id: I366d14d41143d55740e178a16b0af84c5a8ea272
2016-06-20 14:50:26 -07:00
Alex Monk b471ef3868 When logging in, if VEE cookie is set, change the user's preference to match it
Bug: T133304
Change-Id: I9660cfc7b0e980192dd063f44d32d04cf34b1d6d
2016-06-20 22:15:40 +01: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
jenkins-bot 7810dd74a1 Merge "Pass empty summary to parseAndStash() to avoid warnings" 2016-06-16 21:14:44 +00:00
Translation updater bot 4310eef86e Localisation updates from https://translatewiki.net.
Change-Id: I801b0ddb3d0c02aff980d2ef811e71838e4a78bc
2016-06-16 22:31:15 +02:00
Aaron Schulz eee86a9873 Pass empty summary to parseAndStash() to avoid warnings
Since the summary is not known yet, using "" is fine.

Bug: T137995
Change-Id: I0ef2a6cbe3ffc9be249bfea5e4172159c57698a2
2016-06-16 13:24:11 -07:00
Translation updater bot 57dd56591d Localisation updates from https://translatewiki.net.
Change-Id: I2d8d2890bbc2e8151b502efaa2be4f59204f1ef0
2016-06-15 22:42:11 +02:00
Alex Monk f69cc559b2 Tell the client whether we created a redirect or not properly.
Instead of letting the API formatter set it to empty string if so
or not set it at all if not, have it set to "1" if so or "" if not,
so the JS will handle it correctly.

Bug: T136546
Change-Id: I7308ab1efc1c3060606b61893432b685038192a9
2016-06-15 20:26:11 +01: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
James D. Forrester 08437d364c Update VE core submodule to master (a5063fb)
New changes:
741fad9 BREAKING CHANGE: Update jQuery Client to v2.0.0
19266a0 Create separate CSS hack class for Edge

Change-Id: I3cfe1517496d14175cd6212203e6426fe7ae3c9b
2016-06-14 16:23:17 +01:00
jenkins-bot b45be6f04b Merge "On serialization failure, reset document opacity." 2016-06-14 07:29:45 +00:00
jenkins-bot 1a4c178ea0 Merge "Call child serializeSuccess/Failure in ArticleTarget#serialize" 2016-06-14 07:29:05 +00:00
James D. Forrester 9bd674b0e8 Update VE core submodule to master (fa99ac7)
New changes:
853cb46 Don't fatal when comments are copied

Change-Id: Iac100d64e7cd365576cfa66e0b0f1ef0caf21f11
2016-06-14 00:12:09 +01: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
James D. Forrester 083bf8c319 Update VE core submodule to master (f05419b)
New changes:
7ae9b64 Handle selection changes even when not dragging.
e8f1c87 Clarify EventSequencer listener slice/splice behaviour
70a2445 Rename keyDownState.selection to keyDownState.selectionState
b372e80 build: Bump various devDependencies to latest

Change-Id: I30c6b3d52977a811ce8bb6d9187fa0e139e1af8a
2016-06-10 13:08:35 +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
jenkins-bot 52655bdfc5 Merge "Update VE core submodule to master (a7ee120)" 2016-06-07 10:55:31 +00: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
James D. Forrester 45729a4f8c Update VE core submodule to master (a7ee120)
New changes:
81eccee Fix surface registry fallbacks to values that exist
a7ee120 Document the purpose of setTimeout calls in ve.ce.Surface

Change-Id: I9aaf7744c82d417442c4b3445e5367d6a8e73700
2016-06-07 10:44:09 +01: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
Translation updater bot 07aeb7b0e0 Localisation updates from https://translatewiki.net.
Change-Id: I994944c28e56b1cfac2dde058e58208ee2742053
2016-06-02 22:26:37 +02:00
jenkins-bot 280ca644c1 Merge "Update VE core submodule to master (7fe81f3)" 2016-06-02 15:30:36 +00:00
Translation updater bot 5842e05ac9 Localisation updates from https://translatewiki.net.
Change-Id: I1403e5547f9d1bc27b094e7a389c7c7a54d1ecdb
2016-06-01 23:14:28 +02:00
jenkins-bot 6e6d2bf66b Merge "Move $editableContent computation into overridable method" 2016-06-01 17:40:15 +00:00