Alex Monk
8c3dc0887d
Don't show tab preference dialog again if it's already been shown
...
Bug: T135534
Change-Id: Ifecac607acccc0e18e61b07e8456566d4671aa1b
2016-05-20 02:36:25 +01:00
Alex Monk
1ba035e053
Fix deactivating VE after user explicitly decideas to discard changes
...
Bug: T134794
Change-Id: Idf1941793317a6aff9fe57082b85e3ebff0c72b4
2016-05-10 23:39:57 +01:00
Alex Monk
3c55bfbb80
Add a hidden link with accesskey=v in SET prefer-wt mode and remember-last wikitext
...
Try to tidy up a bit of code in DAT.init.js as well
Bug: T116406
Change-Id: Iad1713e14ea1f982886ba06e0b722c554ab2b892
2016-05-01 21:01:57 +01:00
jenkins-bot
80636c235e
Merge "Add a popup after switching into VE from WTE"
2016-04-25 22:42:55 +00:00
Ed Sanders
6efd583ff7
Add method that runs after activation, for overriding
...
Change-Id: I046583e61f328baddb0c09eaff122e991c85f992
2016-04-22 17:17:56 +01:00
Ed Sanders
7a007e2874
Create MW targets using a factory
...
Move the existing static property 'name' to 'trackingName'
to make way for a real registry index.
Change-Id: Iab0d5be611ece7038234551c4847b07517b4348d
2016-04-21 21:06:39 +01:00
Alex Monk
0bbe2e38ee
Add a popup after switching into VE from WTE
...
Bug: T131066
Change-Id: I2294da7d09dfbacb9187aba5e6e703511cec3c9f
2016-04-20 18:46:00 -07:00
Ed Sanders
a6aa6daa28
Defer before restoring scroll position, and allow 0
...
Bug: T131791
Change-Id: Id48b913effe5313c193ce62b19faf5655278ff6d
2016-04-19 21:42:09 +01:00
jenkins-bot
d4f9a85f27
Merge "Set mw.libs.ve.EditingTabDialog.static.message instead of passing it to setup data"
2016-04-17 17:49:28 +00:00
jenkins-bot
227de9cfef
Merge "Close VE SET dialog when we deactivate"
2016-04-17 17:43:01 +00:00
jenkins-bot
299027e528
Merge "Don't select edit tab when VE is opened while user has prefer-wt pref"
2016-04-17 17:39:56 +00:00
Alex Monk
4ccc1ad5af
Don't select edit tab when VE is opened while user has prefer-wt pref
...
You can still open VE with prefer-wt mode by going to veaction=edit, and
T116406 proposes making it accessible with a keyboard shortcut as well.
Change-Id: Ifc25b5147a96a200ac3a7de465d5cdf67e2e255b
2016-04-15 02:37:46 +01:00
Ed Sanders
011ff4e133
Replace transitionend event with setTimeout
...
transitionend events seem like a neater solution, but we should
migrate all of our code at once, and provide a polyfill for
browsers which don't support it (IE9).
Change-Id: If6ae030856f8e69cc8bb26f21bfed30d5d22775c
2016-04-14 16:21:41 +01:00
Alex Monk
f3c5e2f410
Set mw.libs.ve.EditingTabDialog.static.message instead of passing it to setup data
...
Change-Id: I2bfb79e258253e00c9f856bbbb3c4efae55a128c
2016-04-13 22:46:14 +01:00
Alex Monk
47cfc03d72
Close VE SET dialog when we deactivate
...
You can trigger deactivation by browsing back.
Bug: T132494
Change-Id: I8f66e22a745d84a3ca4b144c389c3ae654974789
2016-04-13 22:41:27 +01:00
jenkins-bot
5dc1257507
Merge "More minor/watch checkbox state computation server-side"
2016-04-11 14:18:56 +00:00
Ed Sanders
f342dc01c3
Adjust DOM and CSS so UI surface runs from top to bottom of page
...
Place things like the page title and redirect link inside a new
container $originalContent, which is appended to the surface
when ready. Replace margins with padding in various places.
This will allow us to surface-height-matching sidebar for dialogs.
Change-Id: I60d80fb303bdaf93e9d121f62d534ee3a3056e59
2016-04-11 13:18:36 +01:00
Roan Kattouw
12eb41acff
More minor/watch checkbox state computation server-side
...
Following through on my threat from 72b0d2a19c
(November 2013).
Change-Id: I0daeef2a0373bbdb06627053e9d726d6fc20a3f6
2016-04-08 18:02:01 -07:00
Alex Monk
7788aece55
After saving and setting HTML, set single-editor edit section handlers again
...
Change-Id: I6e0962271e7e1460abbe82864b47fddc5bd7f235
2016-04-02 09:53:25 +03:00
Alex Monk
4210c4bee0
Use veaction=edit in URL instead of action=edit when we're using multiple tabs
...
TODO: What about prefer-wt users switching from WTE?
Bug: T131064
Change-Id: I9aa701cbda3964decb8b1ee853c0a281567a0ccb
2016-03-30 02:54:01 +01:00
Alex Monk
b1aebf0b48
Don't strip namespace from text that we replace firstHeading with
...
wgTitle is basically just $title->getText()
wgPageName is $title->getPrefixedDBkey()
So we need to take wgPageName and run getPrefixedText (difference is underscores
get replaced by spaces)
Change-Id: Ib99f0d20f1ba99338f80bbbf39cffd544887c3fa
2016-03-25 04:45:09 +00:00
Alex Monk
2063025237
Don't change focus to VE surface if we're opening the SET dialog
...
Bug: T130552
Change-Id: Idc4639bb3f51690a827bdbdb0419e9303dd39a1b
2016-03-23 01:08:32 +00:00
jenkins-bot
4e4684e7d0
Merge "Show redirect target inside target"
2016-03-17 22:54:39 +00:00
jenkins-bot
33c9055fdc
Merge "Reload page after user selects multi-tab option of SET dialog"
2016-03-17 15:39:09 +00:00
Alex Monk
3288d4e3f9
Show redirect target inside target
...
Bug: T63861
Depends-On: I71d3d415fe918e8b0a090860cad9271092b1bd7e
Change-Id: I5a138b95e04773885ca9ee548026729805eb11f0
2016-03-17 15:21:06 +00:00
Alex Monk
02953f5d64
Suppress meta dialog on refresh pages if we want to show SET dialog
...
Bug: T129819
Change-Id: I1176d06e5a5f56f01528acd7d099c8be9d317e51
2016-03-15 08:10:46 +00:00
Alex Monk
3807a918f9
Reload page after user selects multi-tab option of SET dialog
...
Bug: T129510
Change-Id: I3fcac175f18d8159e6a5c4084668264d4705970c
2016-03-11 05:39:29 +00:00
Alex Monk
4462f2539a
Suppress welcome dialog this time if we're showing the SET pref dialog
...
Bug: T129200
Change-Id: Iaa6d80df930cfcbd243efd31437cb8707da35c06
2016-03-10 17:54:15 +00:00
jenkins-bot
8d7baccd5f
Merge "DesktopArticleTarget: Add Edge and MSIE to whitelist"
2016-03-07 23:28:58 +00:00
James D. Forrester
79d1f92b42
DesktopArticleTarget: Add Edge and MSIE to whitelist
...
Bug: T128447
Change-Id: Ia7afe4ddd5abd4fd1de85ba2d2df1fefa6735d79
2016-03-07 14:58:10 -08:00
Alex Monk
21334a0fa8
Keep summary and checkbox selections when swtiching WTE->VE
...
Bug: T128529
Change-Id: I8a7deac1c4d9390c1db7d78c3e0a11d927ef127b
2016-03-02 11:55:50 +00:00
jenkins-bot
e39d8a744b
Merge "Show welcome dialog on mobile too"
2016-02-29 03:02:03 +00:00
Alex Monk
ced27f348f
Show welcome dialog on mobile too
...
Bug: T112599
Change-Id: Ie04aab468c80dabc84e1386e7529138e1101450e
2016-02-25 22:03:00 +00:00
wctaiwan
5da37932a2
Warn for empty summary when edit section used
...
Warn the user about an empty edit summary when the "edit section"
link is used to trigger VE.
Re-does Ic7b456ca a different way.
Bug: T114857
Change-Id: I319c9c5bed47140a81eb409d490c9f82b89a49fe
2016-02-23 00:34:12 +00:00
Ed Sanders
15a47665c8
Meta dialog: Use window action to open windows
...
Because abstraction.
Change-Id: I9811db4380c6cf37a73a76b97c8439f94723c5a6
2016-02-19 17:37:42 +00:00
jenkins-bot
bcae181cec
Merge "Try to make MW->VE switching failures break less things"
2016-02-12 17:29:29 +00:00
Alex Monk
4a288a5866
Try to make MW->VE switching failures break less things
...
* Try to hide loading bar on failure
* Don't set wgAction back to 'view' if we're dropping the user back to the
wikitext editor
Bug: T125580
Change-Id: I13058ae131a1dda3b172e78d9b143d70831c47f1
2016-02-11 02:39:06 +00:00
jenkins-bot
4a751524c4
Merge "Edit mode switch: Show popup next to VE switch button"
2016-02-10 01:51:57 +00:00
Ed Sanders
80124c88a6
Edit mode switch: Show popup next to VE switch button
...
Only show if the user came from VE.
Change-Id: Ic362ba534d135fca5516c8ba401f6b2a22886ff1
2016-02-10 01:36:32 +00:00
Alex Monk
138fafbbb9
DesktopArticleTarget#editSource: Use actionFactory to create a window with the surface
...
So the normal logic is used to close other windows etc.
Bug: T125479
Change-Id: Iee9ef7484de745f3adced28cdbcc87a0c2b597f5
2016-02-06 02:02:39 +00:00
Alex Monk
8cc034b9af
Run VE->WTE modification checks regardless of how the user got into VE
...
I think this fixes a bug similar to the one described in the bug below.
Bug: T124708
Change-Id: I61558227315bec36b71dac281b8da311a3d6bb1a
2016-01-30 03:06:46 +00:00
jenkins-bot
f78dd8ad72
Merge "MWWelcomeDialog: Let the user switch editors"
2016-01-27 00:20:10 +00:00
James D. Forrester
d8769edd01
MWWelcomeDialog: Let the user switch editors
...
Change-Id: If88942d866278f3012dae7972d464a3d2a6a4f82
2016-01-27 00:14:07 +00:00
Alex Monk
38180b5d4d
When loading VE from action=edit/submit, replace the title shown
...
Bug: T117643
Change-Id: Ice21389d02ea10adc668c5b0a64ba2b0b9cf5744
2016-01-22 20:27:01 +00:00
James D. Forrester
ada58df361
build: Bump file copyright notices for 2016
...
Change-Id: I3c618c196e504a80ca297a4132a17f1977a24fb7
2016-01-03 14:57:25 -08:00
James D. Forrester
4a781a3a16
EditingTabDialog: Shorten the copy to make snappier, drop 'Edit' tab name
...
Change-Id: Idd5f373d9fef364318efddcc98ea2de5e91860a8
2016-01-03 13:44:54 -08:00
jenkins-bot
26e3c0ad1d
Merge "Preserve oldid when switching from VE into WTE"
2016-01-03 06:35:58 +00:00
Ed Sanders
2afd7c903d
DesktopArticleTarget: Improve teardown sequence
...
* Ensure activating classes are removed by rejecting activatedDeferred
as soon as teardown starts.
* Try to teardown surfaces is surfaces exist, not just if the target is active.
* Remove noop teardownDebugBar. The debugbar lives inside the surface now.
* Ensure progress bar is always reset, even if target setup is aborted.
Bug: T99139
Change-Id: I16a071c0d4bc8bbc6af2e03e63ee0ffc18d55c75
2015-12-23 12:13:50 +00:00
Alex Monk
c10236cc58
Preserve oldid when switching from VE into WTE
...
Bug: T120898
Change-Id: I51774fd7ca5be7373d8aec55cb420a874bc7d531
2015-12-18 00:47:03 +00:00
Alex Monk
76a12f2f9b
Try to actually resolve visualeditor-editor preference setting when switching editors
...
Seems we need to make sure this returns before navigating to the target page.
This reverts commit 40807a0743
.
Bug: T121122
Change-Id: I4edf03bc0d57b03897d9f1802eabd8f0dd9962b9
2015-12-15 17:35:22 +00:00