Ed Sanders
e1a887ccf8
Migrate DesktopWikitextArticleTarget code upstream
...
Change-Id: Icca4715411737a561302b44b127d91d117e7e29b
2016-11-20 02:52:14 +00:00
Ed Sanders
ff4761bbd9
Fix handling of failure to load visual mode
...
Reject the activating deferred making handleLoadFailure
redundant.
Fix logic for switching back to OWE aware of NWE.
Change-Id: I328fc944bb6b9152752742fe35c56b95e3255b88
2016-11-15 12:44:38 +00:00
Ed Sanders
b4ff55a38c
Always set mode when activating the target
...
Otherwise if the target was already loaded the mode will
not be changed, which can cause the wrong editor to load
in multi edit tab mode.
Change-Id: I64071dfdfc8511cce51bda20b9c62d7fc126c528
2016-11-15 12:44:38 +00:00
Ed Sanders
521c3c8436
Pass isModified when switching from VE to NWE
...
Bug: T150707
Change-Id: I9ae525aa7a5883bb45f91262db8abc082983ee1b
2016-11-14 23:05:21 +00:00
jenkins-bot
0c1eff31ef
Merge "Teardown the toolbar properly"
2016-11-14 17:26:54 +00:00
Ed Sanders
37ccaca2ec
eslint: Re-enable wrap-iife and partially enable dot-notation
...
Change-Id: I4420d66f528dcb18ebe2b9f63996661b2969f833
2016-11-12 14:43:43 +00:00
Ed Sanders
f2e0b408b4
Teardown the toolbar properly
...
Depends-On: I53a86bf5e0322dc9766ae4ddf31ff0ae5568df7e
Change-Id: If9cc876a57272679584ebc653cf2ee8e17ddb821
2016-11-12 14:28:11 +00:00
jenkins-bot
cf3c972a3a
Merge "Move NWE URL changes into JS"
2016-11-12 00:02:50 +00:00
Ed Sanders
b1b6f9836e
Remove redundant narrow-threshold calculation
...
This is done upstream in OOUI.
Change-Id: Icc0e535f9d1113a14d2c1cc275efebbc98e3a38c
2016-11-11 18:54:30 +00:00
Alex Monk
807cb6b54e
Move NWE URL changes into JS
...
Bug: T148077
Change-Id: Ic9b94184a48026254cf4a0a812fe6fc8455841b5
2016-11-11 18:31:22 +00:00
Ed Sanders
6f8e0d9699
Replace confirm with OO.ui.confirm
...
Also enable no-alert eslint rule to prevent alert/confirm/prompt
being used in the future.
Change-Id: I2851e1f58c1861f75dbb20192e5cf6c343da75db
2016-11-11 13:13:58 +00:00
James D. Forrester
26e7267f02
ArticleTarget: Use an OOUI MessageDialog, not window.alert()
...
We should avoid using alert()s as much as possible due to their unhealthy
interaction patterns with any other open tabs or user tasks.
Change-Id: Ib6a217c988322ad17bc7e649c3281eb053b54bbc
2016-11-10 12:55:49 -08:00
Jforrester
dc8171d100
Revert "Temporarily override broken toolbar border colour"
...
This reverts commit 4c8a97f9e8
.
[Pending next OOUI release.]
Change-Id: I890a7081ffa7c015bd32466fa88d61e3f38af4e6
2016-11-09 20:48:58 +00:00
jenkins-bot
28787b0f3c
Merge "Rename methods used for setting up multiple edit tabs"
2016-11-09 00:45:01 +00:00
jenkins-bot
45a75047fa
Merge "Move save dialog checkbox code up from DAT into ArticleTarget"
2016-11-08 17:14:45 +00:00
jenkins-bot
d972d3f4f2
Merge "Hacks to get VE loading on mobile while user has NWE enabled"
2016-11-08 17:14:44 +00:00
jenkins-bot
efb4133119
Merge "Use onEditTabClick handler in SingleEditTab"
2016-11-08 17:10:06 +00:00
Ed Sanders
55fcded32e
Replace non-standard whitespace in comments
...
This is required to pass eslint:recommended.
Change-Id: If8c4876a366e5c021c414e54328ed1913b679969
2016-11-08 14:15:12 +00:00
Ed Sanders
2fa4cfef16
Rename methods used for setting up multiple edit tabs
...
Change-Id: I71d6dd0848e9cc3ee8531b0b914c29219b4697bd
2016-11-08 12:47:30 +00:00
Ed Sanders
f6a205d77f
Use onEditTabClick handler in SingleEditTab
...
Gives us extra functionality like checking for
isUnmodifiedLeftClick which makes CTRL+click on SET
not change the current page, as expected.
Change-Id: Icb37d7383374ee63798443659a2bcb2f1545c8c5
2016-11-08 12:39:15 +00:00
Alex Monk
e81c6e5b43
Move save dialog checkbox code up from DAT into ArticleTarget
...
So it applies to MobileArticleTarget.
This shows the checkboxes on mobile.
Bug: T148914
Change-Id: Ib6559d5601004e58b72903805059e04f42acc85f
2016-11-05 06:24:49 +00:00
Alex Monk
81e32c6a4b
Hacks to get VE loading on mobile while user has NWE enabled
...
* ext.visualEditor.mwwikitext does not have mobile target
* We call mw.libs.ve.setEditorPreference from ArticleTarget
Change-Id: Ifae6e951155c83b13f3111732b0dc500349b1df2
2016-11-05 05:51:26 +00:00
Alex Monk
7c80976f5b
Remove 'vesection' parameter
...
Just use the normal section parameter, haven't been able to figure out why VE
would need to be special about that.
Bug: T149958
Change-Id: I9338d0f1498fbb579fa8c340d6e7274c6d48155b
2016-11-05 02:08:13 +00:00
jenkins-bot
cacb6d5427
Merge "Store editor preference when switching to NWE"
2016-11-02 21:39:11 +00:00
jenkins-bot
b6d3dabfbf
Merge "Add binding for when only tab is new wikitext editor"
2016-11-02 21:36:21 +00:00
jenkins-bot
f20a40d09f
Merge "Keep edit summary when switching between VE and NWE"
2016-11-02 21:09:29 +00:00
jenkins-bot
65236ae67f
Merge "Try to make client and server code to get last editor work the same"
2016-11-02 20:07:07 +00:00
jenkins-bot
254e77a296
Merge "Set section to null when switching from NWE to VE"
2016-11-02 19:45:14 +00:00
Ed Sanders
2282ee80c1
Store editor preference when switching to NWE
...
This will also change the label of the single edit tab.
Bug: T149795
Change-Id: I3e1afad61ed60eb6f58aceb023e2fed16f053542
2016-11-02 19:10:29 +00:00
Ed Sanders
3fb757c307
Add binding for when only tab is new wikitext editor
...
Bug: T149796
Change-Id: I675c5876fbb9ca8427983e9d4252cccda35775f9
2016-11-02 19:10:28 +00:00
Ed Sanders
56679dfb35
Set section to null when switching from NWE to VE
...
This prevents the discard warning from being shown if the user
switches back to NWE then back to VE, as by this point they
have left section editing.
Change-Id: I734684c54a8900aab3332ed8421cb42f7f845738
2016-11-02 15:53:29 +00:00
Ed Sanders
7db58ab3d8
Fix binding of onEditTabClick to section links in SET
...
Bug: T149797
Change-Id: I0f753718ccddb9c2b68cdc82ff379bd59d7006ad
2016-11-02 15:50:30 +00:00
Alex Monk
1384df41c8
Keep edit summary when switching between VE and NWE
...
Bug: T144906
Change-Id: I0b979959f4b6f33167ba4a225184fda7ca13a1e8
2016-11-01 00:08:09 +00:00
jenkins-bot
5709e89399
Merge "eslint: Remove unused exception and fix documentation errors"
2016-10-28 19:12:19 +00:00
Ed Sanders
e655880d14
eslint: Remove unused exception and fix documentation errors
...
Don't enable valid-jsdoc yet though, due to @chainable bug.
Change-Id: I4d2a6de19c72c6e4c20733446616d8046419d431
2016-10-28 12:02:36 -07:00
jenkins-bot
bce6aeb92a
Merge "build: Replace jscs and jshint with eslint"
2016-10-28 18:43:15 +00:00
James D. Forrester
36befda61c
build: Replace jscs and jshint with eslint
...
It's new, it's fresh, it's amazing, it's here.
Change-Id: I5dc784411f704685ed5cc763a2b2b1c5d3e5a610
2016-10-28 18:33:15 +00:00
jenkins-bot
daf7a32c03
Merge "ve.init.mw.DesktopArticleTarget: Fix missing '&&'"
2016-10-28 00:12:45 +00:00
James D. Forrester
c45c79eca2
ve.init.mw.DesktopArticleTarget: Fix missing '&&'
...
Change-Id: I0e91cde3d38d3f5bdd7dde790093db21d8a64036
2016-10-27 16:53:55 -07:00
jenkins-bot
eabd56618b
Merge "Set Api-User-Agent in requests to RESTBase/Parsoid"
2016-10-27 23:24:09 +00:00
Ed Sanders
244eeb9ea1
Update VE core submodule to master (e4c8003)
...
New changes:
e4c8003 Bring in target 'mode' property from MW
Local changes:
Use upstream Target#setMode functionality
Depends-On: I9d501cb77c714fbd299b5816d302b0bdde7833cd
Change-Id: I2fcda6ca7d82d880101d9ba2a027d4ef066aa238
2016-10-27 16:12:31 -07:00
Ed Sanders
fad3b429c8
Make meta dialog tools visibile but disabled in NWE
...
Following our unwritten rule of trying to keep the interface
as consistent as possible.
Change-Id: I58668acb5bac12de73b7b8f52e670f68336c399f
2016-10-27 14:48:51 -07:00
James D. Forrester
7eeb66f63e
Set Api-User-Agent in requests to RESTBase/Parsoid
...
Bug: T149050
Change-Id: I7670450724f18865a7d9c7c7eb182449964f32b0
2016-10-27 08:56:19 -07:00
Ed Sanders
dc902b4c93
Pass edit token when saving/diffing in new wikitext editor
...
Change-Id: Ia14a4d204e367a3d0d46165a51b0cdc6fc3d57e7
2016-10-26 17:39:14 -07:00
jenkins-bot
3c443724e2
Merge "Follow-up I64a8ed73: Fix NWE getWikitextFragment"
2016-10-26 23:57:44 +00:00
Alex Monk
53f8aac0d5
Follow-up I64a8ed73: Fix NWE getWikitextFragment
...
Also fix the rejection Deferred line if things go wrong
Change-Id: I8f060de1972dd0ae79c81162c61efd5956e48955
2016-10-27 00:37:22 +01:00
jenkins-bot
3750081797
Merge "Don't show confirm dialog when switching to NWE"
2016-10-26 21:48:15 +00:00
jenkins-bot
60565711ff
Merge "Fix handling of API responses"
2016-10-26 20:42:35 +00:00
jenkins-bot
035987b9be
Merge "Create init.isWikitextAvailable and add page content check"
2016-10-26 20:42:06 +00:00
Ed Sanders
049a32c60a
Remove transform rule once toolbar has opened
...
Transform rules mess up the z-index context, so this
puts the toolbar dropdowns back in front of the content.
Change-Id: I7ba2cf295c83c55e5b1eead3a04760ea53390d37
2016-10-26 10:25:47 -07:00