David Lynch
b1aed096cb
DesktopArticleTarget: Generate the original page title if needed
...
When switching from the old wikitext editor to VE, we stored "editing..." as
the original page title. Then restored that when saving / switching to "read".
Instead, detect if we're on top of the classic editor, and use the pagename
message to make a plausibly-correct title.
Bug: T126077
Change-Id: Ib0289de71c3ae947ca0a3e45fe1e620378689c35
2016-12-13 19:28:15 -06:00
jenkins-bot
16c5d489fc
Merge "Don't restore scroll position when doing real section editing (NWE)"
2016-12-13 16:33:16 +00:00
Ed Sanders
d2ea716902
Don't restore scroll position when doing real section editing (NWE)
...
Bug: T152946
Change-Id: I969a8edd4f23bbe6c73855aac059df732102c560
2016-12-13 15:44:54 +00:00
Ed Sanders
69c0fb189a
Fix action=editsource URL rewriting
...
Always look for links unless the only tab is VE.
Bug: T153054
Change-Id: Ic1f1de26fb77098fe62f6263a25c8a40de0e09a7
2016-12-13 15:36:34 +00:00
Ed Sanders
1f3bb5c9e5
Add section= param to URL after loading target
...
This wasn't such a big deal in VE because we load the full
page anyway, but in NWE it is more annoying if you reload the
page and are dumped in a different edit area.
Change-Id: If49569cbe1a2759d8cbbd7ee42dd1b88da39a946
2016-12-13 15:31:57 +00:00
jenkins-bot
c4dacd9d24
Merge "Don't focus save dialog during setup to avoid scroll jumping"
2016-12-13 15:31:23 +00:00
Ed Sanders
56c34fbf79
Follow-up I6eda4a7c: Fix typos in #updateTabs
...
Change-Id: Ib80dec3fb199ea03609d5d0f242ac606052f24cc
2016-12-13 15:19:05 +00:00
jenkins-bot
a962e7de3b
Merge "Support section=new in NWE"
2016-12-13 13:55:33 +00:00
Ed Sanders
4064c91b8e
Don't focus save dialog during setup to avoid scroll jumping
...
Bug: T153010
Change-Id: Ia535cd5d4ebfc01994f4e440bb5cb7efa5c40802
2016-12-13 12:57:34 +00:00
Ed Sanders
5a8106773c
Support section=new in NWE
...
Bug: T150709
Change-Id: I1002b97060d642df0988da15860a36c13712bade
2016-12-13 12:20:55 +00:00
L10n-bot
34fbe31e93
Merge "Localisation updates from https://translatewiki.net ."
2016-12-12 21:54:27 +00:00
Translation updater bot
ae76bac942
Localisation updates from https://translatewiki.net .
...
Change-Id: I469815663e16164751f4c202228ff48249993f63
2016-12-12 22:44:06 +01:00
jenkins-bot
669995c8c2
Merge "Follow-up ae8a2750
: Stop passing long-dead second parameter"
2016-12-12 21:20:08 +00:00
Ed Sanders
a504aba7c5
MWWikitextLinkAnnotationInspector: Select links after creation
...
Change-Id: If23d90dc695546e7dddb3c04637e54df47c6f528
2016-12-12 20:09:52 +00:00
Ed Sanders
2d645d1631
Use Surface#setDisabled instead of deprecated #disable
...
Change-Id: Idf998ddc0b95efbf6befbcfa493c42b4c3ba1bfc
2016-12-10 20:03:07 +00:00
Ed Sanders
d555b5ba33
Cleanup handling of 'section' param
...
Provide a common function to parsing, and always pass
section to the target, instead of having the target
re-compute it itself.
Change-Id: If9fc24ffa51507cd969fa1b4dfc1519a0b50a572
2016-12-08 20:24:19 +00:00
jenkins-bot
397eb403cc
Merge "Simplify #updateTabs"
2016-12-08 19:59:29 +00:00
Ed Sanders
cd87e7483b
Expand dummy surface to be at least valid
...
Change-Id: I3888dd2f72858bbe79c61fa4a6f7967f21c5cb7c
2016-12-08 19:36:57 +00:00
Ed Sanders
66e4a5cbe8
Simplify #updateTabs
...
Change-Id: I6eda4a7c27f0b7590aae5505b0459ced07d2cc48
2016-12-08 19:22:11 +00:00
jenkins-bot
bdfff4a3b1
Merge "DesktopArticleTarget: clear out originalCategories when they're updated"
2016-12-07 16:46:06 +00:00
David Lynch
d720041fd7
DesktopArticleTarget: clear out originalCategories when they're updated
...
Bug: T152571
Change-Id: I41b5d5aeea0a01cf922924fa1320369d54fef8cf
2016-12-07 09:48:26 -06:00
Alex Monk
c843824c97
Batch gallery imageinfo requests via ImageInfoCache subclass
...
Also get rid of .join( '|' ) for API request parameters per Bartosz
Bug: T147067
Change-Id: If4444cca300d65e28d6fb9003fcac5e076a5129a
2016-12-06 22:10:19 +00:00
jenkins-bot
a04cef294e
Merge "Update for API error i18n"
2016-12-06 20:04:24 +00:00
jenkins-bot
446a4e40c4
Merge "SaveDialog inherits from plain dialog, not FragmentDialog"
2016-12-06 19:37:41 +00:00
jenkins-bot
9382e0630a
Merge "DesktopArticleTarget: Rebuild the category links when they're edited"
2016-12-06 18:31:43 +00:00
jenkins-bot
bdd1a1b78c
Merge "Scroll highlighted item into view in gallery dialog"
2016-12-06 18:30:22 +00:00
jenkins-bot
9b4bc7a3f2
Merge "Disable heights option in gallery dialog when mode is slideshow"
2016-12-06 18:28:51 +00:00
jenkins-bot
a2e4d9fa82
Merge "Decrease height of gallery search results for better fit"
2016-12-06 18:23:38 +00:00
David Lynch
af8aad0483
DesktopArticleTarget: Rebuild the category links when they're edited
...
This has to go to the API, because it's skinnable. Also, separates out a few
of the initial page setup functions so they can be re-applied to the new
content inserted.
Bug: T151651
Change-Id: I8d5a6504edc2e0486a0b4f016d8ee6d9a6228de9
2016-12-06 11:28:08 -06:00
Translation updater bot
2ab755aca9
Localisation updates from https://translatewiki.net .
...
Change-Id: Iab69a8d0ae63daccd64d3c40545e87897b6e6661
2016-12-05 22:52:43 +01:00
Translation updater bot
19f580a9af
Localisation updates from https://translatewiki.net .
...
Change-Id: I9c43a7a5a9449bf555985696cf57340a4931e11a
2016-12-04 22:41:24 +01:00
Ed Sanders
aa7dba9bdb
Follow-up Ifaf6a2607: Display correct message when switching
...
Use new mode, not old mode for choosing switch message.
Change-Id: I1ad0913b4a23fd6fbf5cdeb07d1a58ec72398d57
2016-12-04 15:51:57 +00:00
Ed Sanders
4f7bba4de9
SaveDialog inherits from plain dialog, not FragmentDialog
...
Change-Id: I934ab41567ea68e58cfa27451faf499febd68bd1
2016-12-04 11:09:56 +00:00
Ed Sanders
f01d617c53
Bypass API call when wikitext is empty string
...
Change-Id: Ie0cedfaae286f73e73bcde7bfca3cb2ae6197924
2016-12-03 17:44:04 +00:00
Ed Sanders
c97e0b58d4
NWE: Disable progress bar when pre-parsing for WindowAction's
...
The progress bar dialogs interfere with the life cycle
of the window you are trying to open. Just disable these
progress bars for now to avoid catastrophic behaviour.
Change-Id: I77c8ae67a2d502bbd189836deb320cd55c3cb11a
2016-12-03 17:20:24 +00:00
Thalia
2fd30fb7c5
Decrease height of gallery search results for better fit
...
Bug: T151509
Change-Id: I92c812952457df99251fc0b8f1a17d4e55fe52f7
2016-12-03 16:31:23 +00:00
Thalia
1b4d70324b
Disable heights option in gallery dialog when mode is slideshow
...
Also disable relevant fields the first time the dialog is
opened, not just when the dropdown is changed.
Bug: T151482
Bug: T151512
Change-Id: Ic511e1832a9fcaaeaed71c1d495aecc65fdd1d3b
2016-12-03 16:00:32 +00:00
Thalia
0b9228a926
Scroll highlighted item into view in gallery dialog
...
Bug: T152053
Change-Id: I6b77f6c27d5629dc18e421f984cf31badfb2ff04
2016-12-03 15:46:58 +00:00
jenkins-bot
e1e55aa730
Merge "Correct class/classes typo in gallery dialog"
2016-12-03 15:20:53 +00:00
Thalia
295dd380de
Correct class/classes typo in gallery dialog
...
Bug: T152226
Change-Id: I569df87cf82359c13ad61a3ddffacd83f5f03bae
2016-12-03 13:03:02 +00:00
Ed Sanders
9ceb13ce60
Update VE core submodule to master (5be61ce)
...
New changes:
860954b [BREAKING CHANGE] Parse selection before applying source tools
Local changes:
Implement convertFromSource/convertToSource in WikitextSurfaceFragment
Depends-On: Iaa41c49e2f8e28af28a8a64cb6915f705fa35e8c
Change-Id: I746619d442fb565cd582cb09de3126526c73c333
2016-12-03 03:43:59 +00:00
James D. Forrester
f494067dea
Follow-up ae8a2750
: Stop passing long-dead second parameter
...
Change-Id: Ifc43d9009c2057b5a189d3cc161b62dc4ca83a2c
2016-12-02 14:31:26 -08:00
L10n-bot
95af1ba8c1
Merge "Localisation updates from https://translatewiki.net ."
2016-12-02 21:24:28 +00:00
Translation updater bot
a131668e46
Localisation updates from https://translatewiki.net .
...
Change-Id: Ie5e6281811ea14485f919a9efcea2f24b009838b
2016-12-02 22:21:13 +01:00
Ed Sanders
9b5adb8688
Remove WikitextWindowAction, inherits from core
...
Depends-On: I2b14cc93bf3c855e157f0b26567337f74992fb96
Change-Id: I3e479c1441f548f62ff8a2f6e7b2ad450262921f
2016-12-02 11:50:43 -08:00
jenkins-bot
3064890a91
Merge "Clear preview when document is modified"
2016-12-02 02:45:29 +00:00
jenkins-bot
36d976c4c0
Merge "Save Dialog: add shortcut for opening to the review panel"
2016-12-02 00:36:40 +00:00
David Lynch
2bd34cebd4
Save Dialog: add shortcut for opening to the review panel
...
Create a new MWSaveDialogAction, which can be hooked up to triggers. Switch
the existing save dialog accesskey to just use the trigger system.
(Maintaining all the accesskey logic, so we don't change the shortcut on
people.)
Bug: T149914
Change-Id: I9b4ef8504148703556f802b266a517dd5098c06b
2016-12-01 18:16:18 -06:00
Ed Sanders
915bbec307
Clear preview when document is modified
...
Use same logic for 'Show preview' as for 'Show changes'
Change-Id: I69510b426548fca46dc9b0d113b77ad206502b21
2016-12-01 23:59:07 +00:00
jenkins-bot
4e05b86cf3
Merge "Use widget.getApi, not this.getApi"
2016-12-01 23:43:16 +00:00