jenkins-bot
797aac9d88
Merge "ArticleTarget#switchToVisualEditor: Bail if the server won't let you switch"
2017-03-14 16:19:06 +00:00
David Lynch
4864189781
DesktopArticleTarget: Discard edit summary when canceling an edit
...
Bug: T160130
Change-Id: I2a631b63c3f90bcd60a81312ee031f90dcbf6586
2017-03-14 10:53:21 -05:00
David Lynch
a9f54aacd4
DesktopArticleTarget: Clear stored summary value after save completes
...
Bug: T160130
Change-Id: Id906da69c743f3a966d4182862cd173b26017059
2017-03-10 10:19:12 -06:00
James D. Forrester
d1f2bf1ecf
ArticleTarget#switchToVisualEditor: Bail if the server won't let you switch
...
Because otherwise you're just throwing all the user's input on the floor.
Bug: T158692
Change-Id: I5df00842697be11ecde9ea8ba2ab16b0dc90205e
2017-03-09 17:09:16 -08:00
David Lynch
05e2a3119e
ArticleTarget: Improve edit summary behavior when switching
...
Distinguish between the initial summary state, and a value stored from the
summary when switching modes. This lets us avoid overwriting a stored value
when section-editing, or assuming a stored value after a switch was never
edited.
Bug: T159686
Change-Id: Ie7640538140a14bbafd539b3a45928f5c55cf804
2017-03-09 14:23:36 -06:00
jenkins-bot
71fe1a8cea
Merge "ArticleTarget: use existing initialEditSummary if present"
2017-03-09 19:12:52 +00:00
David Lynch
261d4e8974
ArticleTarget: use existing initialEditSummary if present
...
Switching modes recreates the toolbar, so if someone has already edited the
save summary it shouldn't update the initialEditSummary to that.
Bug: T159686
Change-Id: I4109442853916bebae2bce804fcd6777e3eb6d34
2017-03-09 12:05:12 -06:00
David Lynch
c5bb912e80
ArticleTargetLoader: wikitext switch shouldn't require FullRestbaseURL
...
The non-FullRestbaseURL branch didn't handle converting the provided wikitext,
causing data loss when switching from source to visual modes.
Bug: T158692
Change-Id: I283afc4be1e322228d6ec572bfa8542ba8fd9ce7
2017-03-09 11:30:16 -06:00
David Lynch
d6c71632ef
Switching modes created an infinite loop onBeforeUnload
...
Switching from visual to source reruns setupUnloadHandlers, which caused an
infinite loop where it thought it was its own fallback pre-existing handler.
Bug: T153346
Change-Id: I8df55a5395ede02fc34ec47a94f2c780dc08595f
2017-03-08 11:32:03 -06:00
jenkins-bot
f9af257b7e
Merge "ve.init.mw.DesktopTarget: Use mw-body-content instead of mw-body to match Vector changes"
2017-03-07 18:32:22 +00:00
Ed Sanders
387f9a5514
ve.init.mw.DesktopTarget: Use mw-body-content instead of mw-body to match Vector changes
...
This ensures the styles are still applied to surfaces in dialogs.
Change-Id: I30e0cc7dc87dc8c8b6b3be84f821aa22baab457f
2017-03-07 18:17:35 +00:00
Ed Sanders
aa8f477dab
Apex: Fix target margins
...
Apex is basically abandonware, so we should consider deleting
this code.
Change-Id: Ie0c21fc21d4c37ab0344978bbd0d071415866397
2017-03-05 18:07:04 +00:00
jenkins-bot
5aba0ee22b
Merge "Improve NWE new section styles"
2017-03-03 18:06:04 +00:00
jenkins-bot
8d29d962c5
Merge "Cleanup DesktopTarget styles"
2017-03-03 17:54:43 +00:00
Ed Sanders
06fa5166c7
Improve NWE new section styles
...
* Use <h2> for TextInputWidget to avoid duplicating skin styles
* Fix placeholder colour and font
Change-Id: I36c0b79ec9cbf3fa2ead0541ef5bac4a14a8781b
2017-03-03 11:59:06 +00:00
David Lynch
6cb6933e67
DesktopArticleTarget: Correctly bind section link handler
...
Since December, the handler now expects to be passed the mode we're switching
to. Since we're filtering for just the edit link and not edit source, we can
hardcode 'visual' here.
Bug: T159374
Change-Id: I160045dd59ff1b4c2d180dbbe37280a1839886df
2017-03-02 11:43:11 -06:00
James D. Forrester
e0814210e9
ArticleTarget#getWikitextFragment: Optimise no-op
...
Change-Id: I6b54ae26e26c5ca697848d2534c128fc9c4bc4aa
2017-03-01 19:17:26 -08:00
Ed Sanders
3c0ddc9c69
Cleanup DesktopTarget styles
...
* Ensure DAT styles are fully scoped to DAT instances
* Ensure that generic desktop target rules are in the correct file
* Remove old unused rules
Change-Id: I466a0547ff9a0fa1102aac0b1e501a6ba6863ca3
2017-03-01 12:38:51 +00:00
Ed Sanders
e163a09105
Use more specific event name for switching editor from the toolbar
...
As we are in the global toolbar event namespace, 'switch' could
mean anything.
Change-Id: I66751faa249710af634ed0fd0c2f2a0bcd872db3
2017-02-28 23:07:54 +00:00
Ed Sanders
109a136bd6
Use pencil icon for editor switcher dropdown
...
Pencil is the icon we use for 'edit' elsewhere in the UI.
Use the eye icon for the VE tool to specify 'visual'.
Bug: T116417
Change-Id: I12b6bab2a52758685abde04579b274a32d651174
2017-02-28 22:59:51 +00:00
Ed Sanders
b3989e4f07
Move switching methods to ArticleTarget and fix in mobile
...
Change-Id: I7796dab5d2a24f9719870abf383925442b787612
2017-02-28 11:47:35 -08:00
Ed Sanders
b3cfca5401
MobileArticleTarget: Don't explicitly set menu indicator
...
It is now inferred from toolbar position.
Change-Id: I9e3ac28aee74599b4b35ac2f870dca2556efb027
2017-02-28 10:37:30 -08:00
jenkins-bot
2e2a5e452c
Merge "Use list tool group for editor switching"
2017-02-28 18:33:44 +00:00
Ed Sanders
5ca02bae09
Use ems for mobile surface font sizes, and add top/bottom spacing
...
Change-Id: Ida827b54a49c427f2fad2de1f634d8c4e4d28154
2017-02-28 15:07:39 +00:00
Ed Sanders
cb60db4c7f
Use list tool group for editor switching
...
Bug: T116417
Change-Id: Iadf5a81e2733ab81fe25c686dcd6dad8eac3885c
2017-02-28 15:06:48 +00:00
Ed Sanders
a3433e67fd
Move modules loaded from DAT.init/TargetLoader to ResourceLoader
...
This will make it easier for third parties to load the required
modules for an article-like target.
Also cleanup mobileArticleTarget to better match desktopArticleTarget.
Change-Id: Idb75e2bd99d8cf2c298e101cf92e8af4f85f5ad5
2017-02-27 16:48:56 +00:00
David Lynch
b1d68872b0
DesktopArticleTarget.init: Don't hardcode single-tab accesskey
...
Bug: T156141
Change-Id: I1312283437714bf338a8ee3cf63e93ac67db1c45
2017-02-14 11:24:50 -06:00
Ed Sanders
6bd650d50a
Check for 'veaction' when clicking section edit links
...
Such as in the 'add topic' link.
Bug: T157104
Change-Id: Ide2d4cf8c23a5d0db24456d15b4312f7c0a5f922
2017-02-08 17:48:04 +00:00
David Lynch
8a7d44224c
ArticleTarget: try to refresh editToken if getWikitextFragment fails
...
Refactor saveFail's badtoken handling out so it can be reused by
getWikitextFragment.
Bug: T156991
Change-Id: I686cddb5be4484211fa69640044db1bc34eacefc
2017-02-07 11:20:59 -06:00
Ed Sanders
7a058a4de8
Remove explicit toolbar indicator definitions
...
These are now computed upstream based on position of toolbar.
The menu tool now needs its indicator explicitly hidden.
Change-Id: Id2280f70553e1e45f3a42af45684c5808797925c
2017-02-04 10:25:37 +00:00
Bartosz Dziewoński
6f367ea0ec
ve.init.mw.ArticleTarget: Don't try to clear non-existent message
...
This is just dead code. We never call `.showMessage( 'captcha', ... )`
(the CAPTCHA is shown in the 'api-save-error' message).
Change-Id: I48f51e89d5b366384d184e2ed505be9e7b8f3401
2017-01-31 14:40:32 +01:00
WMDE-Fisch
a0af0b0529
Disable VisualEditor in the TwoColConflict extension
...
As for the Translate extension this will read a global set by the
TwoColConflict extension to disable the VisualEditor and its hooks
on the modified edit conflict page there.
Bug: T156251
Change-Id: I164d1546c9d98d8715650e13c63a01d06c76315d
2017-01-30 14:06:59 +01:00
Ed Sanders
1df022a6d6
Ignore section edit links when no action present
...
BUg: T156282
Change-Id: If3d039da36db946dcbba123d3cdc4e99c45f6a4e
2017-01-25 18:13:56 +00:00
Ed Sanders
171286c120
Fix typo in target config
...
Change-Id: I5815ce5b0e05ce166e02bfcced520e3770f5453d
2017-01-20 23:15:23 +00:00
Ed Sanders
f58d00b110
Move #getWikitextFragment up to ArticleTarget
...
Change-Id: Ice4b04db4a45c07ccffc3892e6db5d814c2ec37b
2017-01-20 23:15:17 +00:00
Ed Sanders
1ae5c13cb9
Update VE core submodule to master (f0dcedb)
...
New changes:
5b448fa [BREAKING CHANGE] Merge Mobile/DesktopSurface into Surface
2d8959b Localisation updates from https://translatewiki.net .
7eee772 Follow-up 2d8959b: Fix build for added language 'io'
f0dcedb ve.dm.TableMatrix: Really indent ASCII-art comments
Change-Id: I62708f7caeb03b16cd318aab0b0ee3c674e75a26
2017-01-20 14:35:39 -08:00
Ed Sanders
337614d142
Open preview links in new tab
...
Bug: T155159
Change-Id: Idddc6b25303c17382ba1bc763b9001b727e1040e
2017-01-12 16:07:00 -08:00
jenkins-bot
7c49a23a33
Merge "ArticleTarget: Give users a specific message when HookAborted errors happen"
2017-01-11 22:21:13 +00:00
jenkins-bot
18ba046361
Merge "ArticleTarget#saveErrorUnknown: Handle the xhr being complete"
2017-01-11 20:37:08 +00:00
James D. Forrester
002b0adef0
ArticleTarget: Give users a specific message when HookAborted errors happen
...
Change-Id: I7017412dc56200f5bb0adbd901aed15507447846
2017-01-11 10:46:30 -08:00
James D. Forrester
2b502572ec
ArticleTarget#saveErrorUnknown: Handle the xhr being complete
...
Change-Id: I638b5b80c5a404a438ebd357b6e16bbab7871d6e
2017-01-11 10:45:43 -08:00
Ed Sanders
889ffc0efc
DesktopArticleTarget: Prevent infinite while loop if $content is empty
...
Change-Id: I629b2c3f1a4af3441764db7d1d0a7cec96181396
2017-01-11 18:29:16 +00:00
jenkins-bot
09829ae7b4
Merge "MWMetaDialog: Move categories to the top as they're used most"
2017-01-07 14:56:56 +00:00
jenkins-bot
4d64196fcb
Merge "Fix loadFail parameter handling"
2017-01-04 22:46:27 +00:00
jenkins-bot
e91f8f913e
Merge "Allow 'T-' prefixed sections, and redirect if section link title isn't current page"
2017-01-04 22:38:34 +00:00
Alex Monk
1bcaa9056c
Fix loadFail parameter handling
...
Rename them while we're at it.
Bug: T151278
Bug: T152429
Change-Id: I435ac148007db87da69e8cf48568fafa646abb71
2017-01-04 22:31:08 +00:00
James D. Forrester
6795430831
MWMetaDialog: Move categories to the top as they're used most
...
Bug: T74399
Change-Id: I696d8484ed00c92340f178d5c9dcfe978998dce0
2017-01-04 11:18:00 -08:00
Ed Sanders
808de2acea
Add "templates used" page to meta dialog
...
Bug: T149009
Depends-On: Id617f9afbddf094140133f9659efc4b4e746148c
Change-Id: I63e663d05aefb47274f1f28bdcafc5317c2fc4f6
2017-01-04 18:30:11 +01:00
Ed Sanders
b7dd6077b8
Allow 'T-' prefixed sections, and redirect if section link title isn't current page
...
Bug: T153176
Change-Id: Ic6fda78d00715777df4a273e7d3e150f20185185
2017-01-04 16:53:03 +00:00
jenkins-bot
1ac5ede187
Merge "Don't try to JSON stringify load error messages that are already strings"
2017-01-03 20:22:50 +00:00