Commit graph

10678 commits

Author SHA1 Message Date
Bartosz Dziewoński bff16fb352 ve.ui.MWLanguageVariantNodeContextItem: Fix condition for empty table
For magical HTML reasons, a `<tbody>` node is automatically inserted
inside the `<table>` node. Therefore the table always had exactly one
direct child, this check always failed and table was never shown.
Instead, count the rows.

Change-Id: Ia8a5387c3f605689ab1053c923952ec955b83253
2017-08-29 21:57:48 +02:00
jenkins-bot 50c31a0b29 Merge "mw.ArticleTarget: strip HTML tags entirely from source-mode summary" 2017-08-29 19:50:04 +00:00
David Lynch dc101c6169 mw.ArticleTarget: strip HTML tags entirely from source-mode summary
Bug: T173711
Change-Id: If8b354b2788285ea27472bf9a16544f8e5c091f8
2017-08-29 12:01:33 -05:00
David Lynch 5d4ff082e6 MWLinkAnnotationInspector: check input validity when switching modes
Focusing a TextInputWidget normally unsets validity. However, because we're
kind of pretending this is the same input, just in a different mode, it
doesn't make sense to the user that the focus behavior occurs. So, make it
recheck validity after we switch.

Bug: T172159
Change-Id: I1d9d6670d72483c7510fd5ed3c539b43af8432bf
2017-08-29 11:28:29 -05:00
Bartosz Dziewoński 0a378318bf ve.ui.MWEducationPopupTool: Position blue dots with CSS only
We can place them in bottom center of the toolbar buttons with
just CSS, no need to manually calculate the position (which
doesn't give the correct results if the toolbar is not visible).

Also add z-index for correct rendering inside TargetWidget,
not overlapped by the toolbar border (e.g. in the media dialog).

Bug: T174120
Change-Id: I556ddfcf252669107cf21810fbed7c9a3751e906
2017-08-29 18:21:44 +02:00
Ed Sanders c8e856bfb2 MWParameterPage: Vertically align actions with label
Also make label consistent height, with or without an
indicator using line-height, and move closer to input.

Change-Id: I1b6e6e2f3caa4c949583cafa9448aae6ebc1e0a1
2017-08-29 14:45:21 +01:00
Ed Sanders 550408f863 Increase width of param actions container
Bug: T174202
Change-Id: I61a175593b087219b22c5be91d00054b1c15e1dc
2017-08-29 14:28:26 +01:00
Translation updater bot 498d1dde0c Localisation updates from https://translatewiki.net.
Change-Id: I85367b5829adcc6402905429b09b00302d1c8585
2017-08-29 09:27:05 +02:00
Translation updater bot 632a39446f Localisation updates from https://translatewiki.net.
Change-Id: I86a476a67016ccfec0ece9a6d40576bcc9cc9683
2017-08-28 13:47:03 +02:00
Ed Sanders 3ba918a6ae Disable VE on Special:Undelete
Bug: T173154
Change-Id: I2a7d815a67c9e0f80ab3cdfd3a3755370c831867
2017-08-25 18:09:37 +01:00
Translation updater bot 4677c6837b Localisation updates from https://translatewiki.net.
Change-Id: I5ea49bc6475bf5c10b900b9ade15455ee939b4a8
2017-08-25 10:06:55 +02:00
jenkins-bot b73deb1690 Merge "Create wrapper paragraph when converting block image to inline" 2017-08-24 22:16:16 +00:00
jenkins-bot 842b3336bd Merge "Move historical diff loading to DiffLoader util" 2017-08-24 18:33:45 +00:00
jenkins-bot f315c650f6 Merge "Don't focus media dialog until ready process" 2017-08-24 17:18:54 +00:00
Brad Jorsch 2abb9b1b2d Remove execute mode from non-executable
Change-Id: I46549acd49ca883e9047b8117cb968a9ddbb06cc
2017-08-24 10:57:25 -04:00
Ed Sanders eb2ee52de0 Create wrapper paragraph when converting block image to inline
This prevents the image jumping into another paragraph,
e.g. in a different table cell.

Move the logic for removing the old image out of MWMediaDialog
and into MWImageModel#insertImageNode.

Bug: T121449
Change-Id: Ibd7c92f3f90c382ceffd3e0defb12ba36a3786d2
2017-08-24 15:56:22 +01:00
Ed Sanders b11b144ad6 Don't focus media dialog until ready process
Bug: T174027
Change-Id: I070b5538e12c8a165a714ac6c3fd172f0ed179d4
2017-08-24 15:38:11 +01:00
Ed Sanders 51207e7aa5 Allow for mw.body being null in <selfclosing/> extensions
Bug: T173016
Change-Id: I8daa65e5dc0368b366710f044b621287e83e26f7
2017-08-23 16:13:16 +00:00
Translation updater bot 21759ac8c9 Localisation updates from https://translatewiki.net.
Change-Id: I39a7dcd4701e7481dadc37a285159ab283d995e2
2017-08-23 09:43:48 +02:00
jenkins-bot 8e29c59e44 Merge "Decrease border contrast on selected Vector tabs" 2017-08-22 20:47:22 +00:00
Volker E a2f70cac8b Decrease border contrast on selected Vector tabs
Decreasing border contrast on selected Vector tabs.

Bug: T173465
Change-Id: I46530c8cdf9161e527f421eeb8186a7695057361
2017-08-22 13:28:24 -07:00
Translation updater bot 03e17c61bc Localisation updates from https://translatewiki.net.
Change-Id: Ibd8a3f757e90d99142994dc73b15f178cf98d90b
2017-08-22 09:24:57 +02:00
Translation updater bot 066cc2ed3e Localisation updates from https://translatewiki.net.
Change-Id: I0e8878a5878027ffcf58bd02629fe8c54123634a
2017-08-19 09:26:56 +02:00
jenkins-bot 12ee2041d7 Merge "Align border and border-radius values" 2017-08-17 14:52:10 +00:00
jenkins-bot 9c2bccea48 Merge "Replace remaining greys/reds with WikimediaUI color palette colors" 2017-08-17 14:52:05 +00:00
Translation updater bot 98618638a1 Localisation updates from https://translatewiki.net.
Change-Id: Ia7afe35d0f465b16d73f065c2373ded6f2dff063
2017-08-17 09:20:06 +02:00
Volker E 19eb726677 Align border and border-radius values
Aligning `border` code syntax codebase-wide and
`border-radius` values to WikimediaUI theme.

Change-Id: I1a16dccf17bd112ba5071ebfe02d57237feb39e0
2017-08-16 14:05:55 -07:00
Volker E aaffa6aa46 Replace remaining greys/reds with WikimediaUI color palette colors
Replacing remaining greys and reds apart Monobook/Apex specific
stylesheets with WikimediaUI palette colors.

Bug: T173459
Change-Id: I9b5b1c379bf76e8da57eeff28c7dd000f148a8fc
2017-08-16 13:43:02 -07:00
Translation updater bot 84c6f28b97 Localisation updates from https://translatewiki.net.
Change-Id: I594ea5f8e9f15fb6739e2ede21e3e365caa77b0a
2017-08-15 09:02:55 +02:00
Translation updater bot 24e7cd1b26 Localisation updates from https://translatewiki.net.
Change-Id: Ib536e242d7d941e57e18056b52a304cfdfd73ed6
2017-08-14 09:43:14 +02:00
Ed Sanders 3cf074c6ea Move historical diff loading to DiffLoader util
Change-Id: I318752ede2e5c90f9d0ecd26b39e997fff2d60bd
2017-08-13 15:31:42 -04:00
David Chan c87abccdf9 MWLinkAction: Don't annotate close tags
Change-Id: I273838eba4cb259cf053ce88378da10b0e241155
2017-08-13 11:33:43 -04:00
jenkins-bot 2398ae1f3f Merge "Inform users visual diffs are in beta" 2017-08-12 21:04:54 +00:00
Thalia fd75d2687f Inform users visual diffs are in beta
Bug: T170665
Change-Id: Ia144c4409767567e41693a3fecd245a6b49c27c7
2017-08-11 15:12:08 -04:00
jenkins-bot 8975449eaf Merge "Context item for LanguageConverter markup" 2017-08-11 14:29:09 +00:00
jenkins-bot 6f12d066d1 Merge "Rename LanguageConverter markup fields" 2017-08-11 14:28:11 +00:00
Translation updater bot 40337be73a Localisation updates from https://translatewiki.net.
Change-Id: I42edcaf67657f3d0c8425ae1152a47ed3dbc6df9
2017-08-10 23:17:54 +02:00
jenkins-bot a604c3064a Merge "VisualDiff: Store diffmode in query string on diff pages" 2017-08-10 19:22:40 +00:00
Ed Sanders 1d70266b8b VisualDiff: Store diffmode in query string on diff pages
Change-Id: I092ac68dd31b29b4418e7afb37bfe94befa16558
2017-08-10 11:24:54 -04:00
C. Scott Ananian c89a3059f8 Context item for LanguageConverter markup
Add a context item giving more information on language converter markup.

Bug: T49411
Change-Id: I3c91db84793a9a965dcb760253b24edee5d7bd23
2017-08-10 11:02:41 -04:00
C. Scott Ananian 4ff740fe21 Rename LanguageConverter markup fields
Avoid confusion by using `twoway` instead of `bidir`, which could be
confused with the Unicode bidirectional layout algorithm.

Depends-On: Ib59dff22e64f235e30778a5a5b3e525e4fc7fdd3
Change-Id: I7efb35245d48125b167dc0f0ef8f12aa0fff94e5
2017-08-10 10:59:57 -04:00
Translation updater bot 937f5c0238 Localisation updates from https://translatewiki.net.
Change-Id: I1b87d53f71cdaa9d9200bb77985e16e26313d174
2017-08-09 22:46:38 +02:00
jenkins-bot 430fa82774 Merge "Expose ve.ui.MWInternalLinkContextItem generateBody logic" 2017-08-09 18:07:33 +00:00
David Chan c03d69b761 Expose ve.ui.MWInternalLinkContextItem generateBody logic
Change-Id: I94912ac2c471cc5d227fa8b9cb29c302ca29814d
2017-08-09 17:58:49 +00:00
jenkins-bot afd3bb5a1d Merge "Remove code for magnify icon from figcaption node" 2017-08-09 16:35:54 +00:00
Translation updater bot 961b2241e9 Localisation updates from https://translatewiki.net.
Change-Id: I930f11036e7bc1ac1ee700e65b5ddd2bda222b61
2017-08-08 23:08:11 +02:00
Translation updater bot a2af4cb554 Localisation updates from https://translatewiki.net.
Change-Id: Iea21c4fac1e837b0f87e7188a46a3aeca0fd87e6
2017-08-07 23:10:09 +02:00
Translation updater bot 57dfd917f2 Localisation updates from https://translatewiki.net.
Change-Id: I352afaf45420ca6a3ad59c23573eac8f13202f6e
2017-08-06 22:51:32 +02:00
jenkins-bot 1e474e038e Merge "Support visual diffs on Special:ComparePages" 2017-08-06 11:46:57 +00:00
Ed Sanders 5104f63cf3 Support visual diffs on Special:ComparePages
Bug: T171821
Change-Id: I13fe8349ab2d078b172637c931f1b80f7108c927
2017-08-05 23:38:20 +01:00
Translation updater bot 060c3d5558 Localisation updates from https://translatewiki.net.
Change-Id: I7d2f623163590912147702af63a24709fccd4442
2017-08-05 22:54:48 +02:00
Translation updater bot 1e12b53858 Localisation updates from https://translatewiki.net.
Change-Id: Ifc5d45f9e8b43bf5a17a0e1206cae95645e325eb
2017-08-04 23:31:05 +02:00
jenkins-bot dc99384c06 Merge "Fill empty apihelp messages" 2017-08-03 21:53:41 +00:00
Umherirrender 33ddad9382 Fill empty apihelp messages
Change-Id: I5c300e763b58071719710e73fcc0c1666a8e35ec
2017-08-03 23:42:09 +02:00
Translation updater bot 5e85df4c31 Localisation updates from https://translatewiki.net.
Change-Id: Id51f14b71889d68489b7e0c34d1b3add3316fc06
2017-08-03 23:11:46 +02:00
Roan Kattouw 448944de3b Standardize on /^(\.\.?\/)*/ for interpreting Parsoid hrefs
We used (\.+\/)* instead of (\.\.?\/)* in some places,
but that doesn't make much sense since we won't and shouldn't
ever see stuff like '.../'

Change-Id: I9efcff2d2a34499ca57321dfbae29392ecb422d7
2017-08-02 21:30:31 +00:00
Translation updater bot 96fd341f1d Localisation updates from https://translatewiki.net.
Change-Id: I73618d0dc368f56585b7f950ecf20c693d29b8d6
2017-08-01 23:05:50 +02:00
jenkins-bot 7b17760ad6 Merge "ve.init.mw.ArticleTarget: Fix parsing of preview documents" 2017-08-01 17:40:51 +00:00
Bartosz Dziewoński e31ffa9199 ve.init.mw.ArticleTarget: Fix parsing of preview documents
ve.init.mw.Target.static.parseDocument requires that its parameter be
a complete HTML document with a single root tag, otherwise some of its
workarounds break horribly in IE 11 (and possibly Firefox).

Bug: T171600
Change-Id: Iaacf24f7bef40a24230fcfa08e15bab31b1587c0
2017-08-01 17:16:43 +00:00
jenkins-bot c959caffe4 Merge "Copy over missing steps from MWLinkAnnotationInspector to Wikitext version" 2017-08-01 16:25:08 +00:00
Translation updater bot 9a0fda6bba Localisation updates from https://translatewiki.net.
Change-Id: I3e8539bec5dbd521a0fc1b10d72f78e3d1637d56
2017-07-31 23:05:34 +02:00
jenkins-bot c44e8e7b19 Merge "Compare template names when diffing, not just type" 2017-07-31 19:28:57 +00:00
Ed Sanders a90f8f5ea1 Copy over missing steps from MWLinkAnnotationInspector to Wikitext version
Bug: T171892
Bug: T171895
Change-Id: Id14eed79b9a2395b3b722828e62b05d3d8d44327
2017-07-31 18:44:12 +01:00
jenkins-bot 1bfe56ddb0 Merge "ArticleTarget: set local config to hide welcome dialog" 2017-07-31 16:07:35 +00:00
Translation updater bot 34cd347904 Localisation updates from https://translatewiki.net.
Change-Id: Ie572f56ba6293663fc4c19e5b70d80035e97e57f
2017-07-28 22:47:03 +02:00
Ed Sanders 539a1cab43 Compare template names when diffing, not just type
As type is always 'mwTransclusionInline/Block'.

Bug: T166801
Change-Id: I76cdf0add780d556206c439797cfcca19133d94d
Depends-On: I0f24d9d81b5491a8f09bc59e5f544f99751fd506
2017-07-28 21:32:32 +01:00
Translation updater bot c0a5b64695 Localisation updates from https://translatewiki.net.
Change-Id: Id9389d3f271a86db33767e8c9813eaa14b019a17
2017-07-27 23:23:21 +02:00
Translation updater bot ae47ac45c0 Localisation updates from https://translatewiki.net.
Change-Id: I47ea114caf376072407ba6c92e60c216aaeb61fd
2017-07-26 22:58:09 +02:00
Translation updater bot cc0bd4b4cc Localisation updates from https://translatewiki.net.
Change-Id: I349f1de9b00d36c1e2f1072f7c2cd84629cd3e6e
2017-07-25 22:47:19 +02:00
C. Scott Ananian 9ee713d480 Display LanguageConverter markup in VisualEditor
Implement special node types for language variant markup, so that they
display appropriately based on the currently-selected variant.

(Parsoid uses empty elements to represent this markup, so without this
patch anything in -{ ... }- is alienated and disappears.)

A follow-up patch will implement context items and inspectors to
allow editing these nodes.  This patch is basic "read-only" support.

Depends on I4fcdebc2290ec35ba188f4c2e69d578791fbcd67 in Parsoid to
generate the appropriate markup, but this patch is safe to merge
independently.

Bug: T49411
Change-Id: Ie11e9301d2513bfe4a36036481cee9a047f46d37
2017-07-25 15:26:41 +00:00
Ed Sanders aeca5a8253 Remove code for magnify icon from figcaption node
This icon is now added by Parsoid content CSS.

Bug: T160960
Depends-On: Id66f09c54103854ccbaa54a03e7c62890b67cba9
Change-Id: I8d76d759641b091c1821ff658b1201ca625fd146
2017-07-25 14:48:39 +01:00
Translation updater bot ea40fc5f60 Localisation updates from https://translatewiki.net.
Change-Id: I57efbb78a536b94d16f7bfeabf4ee7002b21aa0f
2017-07-24 23:21:05 +02:00
David Lynch 0e973e2539 ce.MWTransclusionNode: make sure model exists before getting its document
Bug: T168932
Change-Id: I8d458888ed0b80205ce17b41f3506410c550630f
2017-07-24 11:31:19 -05:00
jenkins-bot 6dec360659 Merge "Edit image captions in place" 2017-07-24 16:02:06 +00:00
jenkins-bot 23b9f4284e Merge "Fix toolbar position on Special:CollabPad" 2017-07-24 08:49:23 +00:00
Ed Sanders 058e30d29d Fix toolbar position on Special:CollabPad
Adds missing ve-init-mw-desktopArticleTarget-toolbar-open class.

Change-Id: I8579928c8daa224bb9bec8fa5f4360fb3c52c5a1
2017-07-24 09:38:29 +01:00
Translation updater bot 99d18028d9 Localisation updates from https://translatewiki.net.
Change-Id: I2580854b1270433a4ccda9262d16d7741c9b03e1
2017-07-22 23:01:52 +02:00
Translation updater bot d15eb23806 Localisation updates from https://translatewiki.net.
Change-Id: I5fe6d7383256cf027d4550d81ed5bee28df8b1ce
2017-07-20 23:07:09 +02:00
jenkins-bot 03173b7b2d Merge "ve.ui.MWEducationPopupTool: Don't show if not inside a BarToolGroup" 2017-07-20 17:07:20 +00:00
Timo Tijhof d8a532c87e tests: Remove QUnit.newMwEnvironment from ve.test.utils.mwEnvironment
Two problems:
* At least one caller already calls QUnit.newMwEnvironment(), which means
  it runs twice which is unsupported and breaks If4141df10eae55 in core.
* It assumes the return will contain 'setup' and 'teardown', which
  is internal and also changes with If4141df10eae55 in core.

Using 'setup' and 'teardown' for this within VE-MW is fine.

First attempt is to simply remove it. Uses that already called
QUnit.newMwEnvironment are effectively unchanged. Uses that didn't
and only pass ve.test.utils.mwEnvironment to QUnit.module directly
will now run without core's QUnit.newMwEnvironment() setup/teardown.

If that breaks anything, we can add it back to those tests that actually
need it.

Change-Id: I9ef0368ba58daf1c7dc92d083ae79c108cc27638
2017-07-20 00:15:51 +00:00
Translation updater bot d804a1fc10 Localisation updates from https://translatewiki.net.
Change-Id: Ifbb0c0e37626c04e5085abdda1e8d4a2f60c3c4d
2017-07-19 23:00:11 +02:00
Bartosz Dziewoński 49d5bae106 ve.ui.MWEducationPopupTool: Don't show if not inside a BarToolGroup
The popup gets hideously deformed in other cases. Getting it to work
would probably be difficult. Let's just not show it.

Bug: T170919
Change-Id: If9005e9cdea52fefab981f4c7f05f71fce99f3e8
2017-07-19 22:13:34 +02:00
David Lynch 5f6e186ed4 ArticleTarget: set local config to hide welcome dialog
This stops the welcome dialog from being displayed repeatedly if the user
edits the article multiple times in the same pageload.

Bug: T170983
Change-Id: I8cc5990e9acb1ac09a2d6dd95eef8042c70088c7
2017-07-19 14:29:49 -05:00
David Lynch 420037b3ff LinkCache: parsoid element styling, detect selflink fragments
Selflinks with fragments aren't actually selflinks, and so shouldn't be styled
as such.

Bug: T170943
Change-Id: Icb67c81327769d09af6bcfe593843d9dd2bcc33c
2017-07-19 11:54:00 -05:00
Ed Sanders 3180445ce9 Edit image captions in place
Bug: T149753
Depends-On: I6967c9c2b99449e1a4ac003db8213586eda7fbbd
Change-Id: I9baaa8634e9f364e78b3e881113ed8fa917bc76f
2017-07-19 13:01:02 +01:00
Translation updater bot 623664ec48 Localisation updates from https://translatewiki.net.
Change-Id: I3e607ca45c0b4f650df79ae26d8c01b26a7e9e88
2017-07-18 23:10:28 +02:00
jenkins-bot 8baf524006 Merge "Visual diffs: Use new wgDiffOldId/wgDiffNewId" 2017-07-18 15:40:28 +00:00
Bartosz Dziewoński 6123b452da Visual diffs: Use new wgDiffOldId/wgDiffNewId
This also removes an undeclared dependency on mediawiki.Uri.

Bug: T169574
Depends-On: Ic4abaae6e9c74509f7a114a697cdbb78dd1b89b6
Change-Id: I76803da5f1a52171a1af8de1f3e31ea127a2da78
2017-07-18 15:16:03 +00:00
Ed Sanders 835a775a49 build: Upgrade grunt-eslint from 19.0.0 to 20.0.0
Mostly indent and regex fixes.

Change-Id: Iaf9d02363c78cb71deec5c4cab53a05b67f60600
2017-07-18 12:55:33 +01:00
jenkins-bot 1a2de9c8ad Merge "DesktopArticleTarget.init: more explicit no-welcome-on-protected-pages" 2017-07-17 22:48:21 +00:00
David Lynch c7486ae19b DesktopArticleTarget.init: more explicit no-welcome-on-protected-pages
Bug: T138715
Change-Id: I1d1efe7fb3286bbf85ea2a17356dcad1d3346517
2017-07-17 17:17:07 -05:00
L10n-bot 3cd82770e8 Merge "Localisation updates from https://translatewiki.net." 2017-07-17 21:11:56 +00:00
Translation updater bot e91837d952 Localisation updates from https://translatewiki.net.
Change-Id: I63740a790669e5562776d363c06a31270592f79b
2017-07-17 23:11:47 +02:00
Ed Sanders 1efd8c5a61 Add mw-parser-output class to CE document
Bug: T164790
Change-Id: I14ee60dc3e68aad02a740af06f5749e6b5e3329c
2017-07-17 18:04:52 +01:00
jenkins-bot 1333373c3e Merge "Drop local 'template' icon, use 'puzzle' from upstream" 2017-07-17 15:09:28 +00:00
jenkins-bot 0549c55ca3 Merge "Fix wikitext preview in IE and Edge" 2017-07-17 14:29:43 +00:00
Translation updater bot c820c04ee1 Localisation updates from https://translatewiki.net.
Change-Id: Ie47d9a6c3f50275338c980822a90edba6853dd8e
2017-07-14 22:57:02 +02:00
Bartosz Dziewoński 0e00b2c109 Fix wikitext preview in IE and Edge
In Internet Explorer and Edge, NodeList objects do not have the
'forEach' method. However, Array's 'forEach' can be applied to them,
as we do elsewhere in the code.

https://developer.mozilla.org/en-US/docs/Web/API/NodeList/forEach

Bug: T170466
Change-Id: Icb19995e140607d45c47fb6ae8d60ac80b664d02
2017-07-14 15:30:27 +02:00
Translation updater bot 815f9e4acc Localisation updates from https://translatewiki.net.
Change-Id: If9dc517ccbb54150ca209d62bae06df165182429
2017-07-13 23:01:37 +02:00
jenkins-bot 1b6cc864b3 Merge "DesktopArticleTarget.init: only show welcome dialog if page editable" 2017-07-13 18:11:46 +00:00
David Lynch 0e8ef6c307 ce.MWTransclusionNode: make sure model exists before getting its document
Bug: T168932
Change-Id: Idf18839b1f1fae6eb29621f1950d2b52c99e3433
2017-07-13 11:33:38 -05:00
David Lynch a2f8597712 DesktopArticleTarget.init: only show welcome dialog if page editable
"Welcome to wikipedia, anyone can edit, we welcome all improvements. Start
editing!" is a bit out of place when what you'll see after clicking "start
editing" is "you can't edit this page".

Bug: T138715
Change-Id: I9f655a5f12d4e45644bd01631c2d3131375d8e8f
2017-07-12 10:29:54 -05:00
Translation updater bot 48a215b9b3 Localisation updates from https://translatewiki.net.
Change-Id: Ida79312d18b2b56b8d75345fde654c59437dca7b
2017-07-11 23:09:03 +02:00
Ed Sanders 0917d27e61 Fix wikitext table insertion
Since Ic8b11d8052 #insertContent puts multiline strings on separate
lines, so to get this to behave correctly, pass in linear data instead.

Bug: T170160
Change-Id: Ie121fce1af46c6834945f4de30bcd9924ee96fd1
2017-07-10 16:16:11 +01:00
Translation updater bot ec3677e001 Localisation updates from https://translatewiki.net.
Change-Id: If34229d9423fb41b99ae7e6d578d247a924d669e
2017-07-08 22:49:24 +02:00
Translation updater bot b67d8d5da9 Localisation updates from https://translatewiki.net.
Change-Id: Iab72a6b6f3236203dce7ea6bf8ec3c1b7bd96acb
2017-07-06 23:04:57 +02:00
James D. Forrester 528942c2e1 Drop local 'template' icon, use 'puzzle' from upstream
Now that our template icon has been upstreamed thereto.

Bug: T111041
Change-Id: If101018de284dcc1be086d92427de0d88adb0e02
2017-07-06 09:52:56 -07:00
jenkins-bot eb94174561 Merge "ve.ui.MWWikitextSwitchConfirmDialog: Remove broken "evil hack"" 2017-07-06 14:53:34 +00:00
Translation updater bot db2921281e Localisation updates from https://translatewiki.net.
Change-Id: I964c0d70f0ad7e953de2ba7d4a77613d81c55785
2017-07-05 22:47:29 +02:00
Bartosz Dziewoński 4c3c8b3d1e ve.ui.MWWikitextSwitchConfirmDialog: Remove broken "evil hack"
The promise #getTeardownProcess is trying to resolve/reject no longer
exists, causing exceptions. The code has been unnecessary for a while,
as we do all the work in #getActionProcess. (In the case that we do
switch, the teardown code isn't even called, since we navigate away.)

Cancelling the switch to wikitext works correctly after removing this
code.

Bug: T169588
Change-Id: I1b9b12edf12a0b91f06c13aa53024efb80868387
2017-07-04 21:49:15 +02:00
jenkins-bot 16f5bc609e Merge "TextInputWidgets: update for deprecated multiline behavior" 2017-07-03 21:21:20 +00:00
David Lynch cfe1d6c0c9 TextInputWidgets: update for deprecated multiline behavior
Remove config option `multiline` and change to MultilineTextInputWidget as
appropriate.

Bug: T169272
Change-Id: I45565f01de76a88d64d7b0691d1e7279354f375d
2017-07-03 22:09:58 +01:00
Translation updater bot af7c3a71c9 Localisation updates from https://translatewiki.net.
Change-Id: I4f1851f6c388dec8ab6be4510607c8f1e8784a33
2017-07-03 22:52:23 +02:00
Ed Sanders dd54c9c95d Return truthy object when image info not found
A missing image should return some data to say the
image is missing, not just reject the promise.

Bug: T169337
Change-Id: Ib41a64a783c1baca88f428417c98e7fb913d14a1
2017-07-03 18:01:33 +00:00
Ed Sanders 915e818356 Clear all gallery state on teardown
Change-Id: I90662d02bd2d9768bdcf27e532ed8b8792f764c3
2017-07-03 17:48:06 +00:00
jenkins-bot 73a0574452 Merge "Normalize to template namespace when comparing" 2017-07-03 16:50:44 +00:00
Ed Sanders b3d44c1ccd Normalize to template namespace when comparing
Bug: T169307
Change-Id: Ic3524819fb026713b27b193e4a03338fffd97229
2017-07-03 16:41:08 +00:00
jenkins-bot baf1908b99 Merge "DesktopArticleTarget: Regenerate title in all non-view page scenarios" 2017-07-03 16:25:51 +00:00
Translation updater bot 9986166cfb Localisation updates from https://translatewiki.net.
Change-Id: Ia03ad93b311249dc73b38b69ea085ecfbf75985d
2017-07-02 22:54:36 +02:00
Ed Sanders af25311201 DesktopArticleTarget: Regenerate title in all non-view page scenarios
Bug: T168236
Change-Id: I15f2aeb42b98855512970e2f07396fd7a7c97354
2017-07-01 17:27:07 +00:00
Translation updater bot 90841ca36c Localisation updates from https://translatewiki.net.
Change-Id: I87974d7d4cbd1f83e913953849d7583d5aa60fc0
2017-06-30 23:43:26 +02:00
jenkins-bot 59d74932b0 Merge "Update VE core submodule to master (b528a5321)" 2017-06-29 07:39:01 +00:00
Translation updater bot 1055bebefc Localisation updates from https://translatewiki.net.
Change-Id: I6b7d0c0b29a571c695078b8a00086470751df315
2017-06-28 23:18:21 +02:00
David Lynch 7e678dc81a Update VE core submodule to master (b528a5321)
New changes:
44d2d666c Remove custom icon sizing from block slugs
793d131f9 Ignore covering annotations when looking for plain text pastes
b0025f3ab dm.Document fixupInsertion: check suggestedParents as well
73ce638f1 ve.ui.TableLineContext: Fancier popups
9d54d531e Visual Diff: add internal list diff
4f4e121b5 DiffElement: Add hacky support for template-defined references

Local changes:

dm.SurfaceFragment tests: exercise fixupInsertion for mwHeadings

Core VE doesn't have any elements with suggestedParents, so make sure this is
properly tested.

Bug: T153315
Bug: T162819
Bug: T164017
Bug: T165865
Change-Id: I01489226d282abe71020e65358ead24fe07692f7
2017-06-28 20:57:19 +01:00
jenkins-bot 05bc265198 Merge "Keep TOC in correct place in document" 2017-06-28 12:31:33 +00:00
jenkins-bot be808346c9 Merge "Fix TOC meta item detection" 2017-06-28 12:31:32 +00:00
Jforrester 15c6011875 Merge "Ensure MWInlineImages get the ve-ce-leafNode class" 2017-06-27 17:15:44 +00:00
Translation updater bot 42ca5c6d1e Localisation updates from https://translatewiki.net.
Change-Id: Ibb3f2f38abf77af4872012fb32f73f89d94d0c7b
2017-06-26 23:08:30 +02:00
jenkins-bot 7f14f854c4 Merge "ve.init.mw.DesktopArticleTarget: Remove some hacks" 2017-06-26 20:27:09 +00:00
Ed Sanders c4f93b1411 Ensure MWInlineImages get the ve-ce-leafNode class
Without this class, offset calculations fail and model/view
sync can be lost.

Bug: T167009
Change-Id: Ie7b6551ac5a532949c14122b9ee7584a794af0f2
2017-06-26 12:43:23 +00:00
jenkins-bot 0dee2be8d8 Merge "GalleryDialog: Re-order and make margins even" 2017-06-26 10:33:17 +00:00
jenkins-bot b2ae6ddcb8 Merge "GalleryDialog: Downstream fix for DraggableElement padding" 2017-06-26 10:32:07 +00:00
Translation updater bot 6623018b9d Localisation updates from https://translatewiki.net.
Change-Id: I97af6bed779e8435746a70ae0eba850ce4be1d2f
2017-06-25 23:21:18 +02:00
jenkins-bot ba3a5d85bd Merge "Show visual diffs on DiffPage" 2017-06-25 03:30:29 +00:00
jenkins-bot a7fdaffb1b Merge "Clear all diff state when switching editors" 2017-06-24 11:10:32 +00:00
Translation updater bot 2a2b22c829 Localisation updates from https://translatewiki.net.
Change-Id: I157176fbd3f29a718b7b95974216db819c881cb9
2017-06-23 22:54:56 +02:00
Ed Sanders 15af26876a GalleryDialog: Re-order and make margins even
Move image inside filename fieldset, and make
margins between fieldsets and button 1em.

Change-Id: I7f6789043f873f9da4e960c94e22a7ee096a352f
2017-06-23 12:16:35 -07:00
Ed Sanders 9eb637e933 GalleryDialog: Downstream fix for DraggableElement padding
Bug: T168745
Change-Id: I95e6f5cd2126878c4f973285fceece1d5a03c4eb
2017-06-23 11:58:37 -07:00
jenkins-bot 93a44ef399 Merge "MWTransclusionDialog: fix conditions for "show options" button disabling" 2017-06-23 17:21:50 +00:00
Ed Sanders fd1adfb3b5 Keep TOC in correct place in document
Change-Id: I6ad8cd8cbd7ef902204408673eb096b7405abd24
2017-06-22 15:16:15 -07:00
Ed Sanders 1a0fd81f64 Fix TOC meta item detection
Change-Id: Icce35100bbc0bfb5584a676eec0e1774308d0f68
2017-06-22 15:16:14 -07:00
Translation updater bot 48c6e558ea Localisation updates from https://translatewiki.net.
Change-Id: I03013c77fdaffbca561a7e3a3462a5469703b25b
2017-06-22 23:10:14 +02:00
Ed Sanders 11e6e25ac6 Clear all diff state when switching editors
Bug: T168618
Change-Id: I19ff5054b87568546bfe1202d67c5d863e1549be
2017-06-22 10:54:04 -07:00
David Lynch 9ded195f7e MWTransclusionDialog: fix conditions for "show options" button disabling
As I understand it, the button should be enabled whenever there's more than
one option in the sidebar, and disabled otherwise. The previously chosen
conditions weren't perfectly proxying this, and the button would be disabled
whenever editing an already-existing transclusion.

Bug: T167710
Change-Id: Id303b680c072642ae7b66066e28ecc9f1dc90fd7
2017-06-22 17:58:52 +01:00
jenkins-bot e285c8e4cb Merge "Show simple category list in preview" 2017-06-21 20:07:45 +00:00
jenkins-bot 090d26f9c5 Merge "Use Parsoid data for template names rather than detect from wikitext" 2017-06-21 01:15:38 +00:00
jenkins-bot 7cd5a5d61f Merge "Add newline to end of wikitext documents" 2017-06-21 01:10:57 +00:00
Ed Sanders 09519a24d2 Add newline to end of wikitext documents
Bug: T156609
Change-Id: I80d82ad87464b1c6e0344b29123bb96fcc4cffad
2017-06-20 17:51:51 -07:00
jenkins-bot 115f8e7ae5 Merge "Move preview document filtering into MWSaveDialog" 2017-06-21 00:41:26 +00:00
jenkins-bot fc4e836d4b Merge "Fix getWikitextFragment shortcut to return a promise" 2017-06-21 00:40:46 +00:00