Commit graph

7950 commits

Author SHA1 Message Date
Roan Kattouw 7575ee6db3 Update VE core submodule to cf1945f60e3d1d7bc54c9ef5f90ac3ebd1f3d42b
New changes:
6fecd98 Better measurement of focusable node for context menu
9166bcd Special case for shielding of generated content wrappers
77903da Centre callout on context menu for small focusable nodes
1f8ac6d Make highlighting of context widget items less loud
48c57d3 Localisation updates from https://translatewiki.net.
a00d8ac Check language's direction rather than global direction in LanguageAnnotation description
7923e6d toLowerCase language code when searching for autonym
8eb4a71 Re-enable apply button in action dialog on close

Change-Id: I56bd961110d9fa505db1d7472caa1fd93519d284
2014-06-11 17:32:52 -07:00
jenkins-bot 134b4255b4 Merge "Remove setValue call from live extension setup" 2014-06-11 23:45:41 +00:00
jenkins-bot 502e02e360 Merge "[BrowserTest] Update login tests to use api" 2014-06-11 23:27:26 +00:00
jenkins-bot 968bec0a40 Merge "[BrowserTest] remove experimental cursor test" 2014-06-11 23:26:55 +00:00
Cmcmahon 81ee97ba54 [BrowserTest] remove experimental cursor test
This never did work properly, it was kept around as a toy

Change-Id: I1787b274cdd9297e906f9076b7d4135f7a29782b
2014-06-11 16:24:38 -07:00
jenkins-bot 0898f8e7c6 Merge "Set traditional galleries to inline-block to get correct width" 2014-06-11 22:28:11 +00:00
jenkins-bot 860b535bda Merge "Fix terrible Hiero CSS" 2014-06-11 22:27:22 +00:00
jenkins-bot 672b27fcfc Merge "[BrowserTest] Ignore puppet-managed configuration" 2014-06-11 22:19:03 +00:00
Dan Duvall 65acd49edf [BrowserTest] Ignore puppet-managed configuration
Change-Id: I19011c41a91d0cd3d4116ed6ae75894c232e970e
2014-06-11 14:51:58 -07:00
Translation updater bot 439461fefb Localisation updates from https://translatewiki.net.
Change-Id: I54aee9a37c9274259df173e9f842ae7bdeddd0f4
2014-06-11 20:41:50 +00:00
Ed Sanders 26535382e5 Remove setValue call from live extension setup
It's already done by the parent, and done in a more complex manner
(with whitespace preservation) which this destroys.

Change-Id: I0385abe4093223b1804b11d77222cf8212a6360f
2014-06-11 20:30:47 +01:00
Ed Sanders f4de32e56c Fix terrible Hiero CSS
Makes calculating shields much easier.

Change-Id: Icf61b4bf6df7f7cc4a9650e8da972eca369cadf2
2014-06-11 20:20:21 +01:00
Roan Kattouw 10cda9359a Update VE core submodule to master (fc52878)
Remove RelocatableNode mixins for new FocusableNode.

New changes:
fc52878 [BREAKING CHANGE] Merge RelocatableNode into FocusableNode

Change-Id: Id8ce497b0fd1ff7732f68aa1ae8af4f4f8f9db0f
2014-06-11 11:14:46 -07:00
jenkins-bot 4ba3268498 Merge "Don't select contents of textarea in extension inspector" 2014-06-11 17:46:48 +00:00
Timo Tijhof 792e7db351 ve.dm.Converter.test: Use teardown to restore mw.config instead of ad-hoc
Follows-up I90273786ac186d.

QUnit.newMwEnvironment() is a utility provided by MediaWiki core
that returns an object with 'setup' and 'teardown' that automatically
provides a new sandboxed mw.config before each test and restores
the original after each test.

Change-Id: I24ac5d8be278df7070093fb84bcbe3720be18791
2014-06-11 18:19:53 +02:00
Cmcmahon e9cc4b441b [BrowserTest] Update login tests to use api
This should make it possible to run all of the VE test suite
against an arbitrary wiki (with VE installed) including
the latest vagrant image with VisualEditor role enabled

Tested on the vagrant image and on beta labs

Change-Id: Ib249e4ffb607210756bb110187c7e2864b0c83f5
2014-06-11 09:14:17 -07:00
Cmcmahon a6b8d755fa [BrowserTest] Remove obsolete test
Uses old version of api call and doesn't actually do much useful

Change-Id: Idfd831a89ed77e475e26925d23f8b62a8e4aa50e
2014-06-11 08:12:11 -07:00
Ed Sanders ab2af54ff9 Set traditional galleries to inline-block to get correct width
Prevents over-sized shields.

Functionally (but not logically) dependent on I8a532b20 in core.

Change-Id: I12a1a76a6dbef9b365035ad8c577243a3420b967
2014-06-11 14:31:27 +01:00
Ed Sanders c0221066d7 Don't select contents of textarea in extension inspector
Assume this was copied over from annotation inspector
but doesn't really make sense for a large textarea.

Change-Id: If731d22d09fc4c5636301a3da3089096555a9dc1
2014-06-11 14:26:38 +01:00
Ed Sanders 55bab0d77c Fix typo in class name
Follow up to Ia10987fb which fixed some but not all the typos
and in so doing broke functionality.

Change-Id: Idce901e04f09b2b34c45081d622ee161036e6c90
2014-06-11 14:21:25 +01:00
Roan Kattouw 310601ef47 Update VE core submodule to master (e1b0e33)
Remove ProtectedNode mixins for new FocusableNode.

New changes:
e1b0e33 [BREAKING CHANGE] Merge ProtectedNode into FocusableNode

Change-Id: Ie515704163c24317739fd34d35094b9ada6bfa66
2014-06-10 16:52:49 -07:00
jenkins-bot f7f0f7127b Merge "Update VE core submodule to master (ba8872e)" 2014-06-10 20:55:24 +00:00
jenkins-bot bbe51a8bee Merge "Disable/Enable alignment select widget with checkbox" 2014-06-10 20:52:46 +00:00
Roan Kattouw 1455c72a35 Update VE core submodule to master (ba8872e)
Replace instances of target.$document, which was removed
in VE core.

New changes:
8083623 [BREAKING CHANGE] Remove $document cache from target
9256158 Cleanup target properties
cc0d71f Multi-surface fixes
ba8872e Localisation updates from https://translatewiki.net.

Change-Id: Ibff83cae770c056ed64bcf438ed74b44d929cdc0
2014-06-10 13:52:34 -07:00
Translation updater bot cda3220842 Localisation updates from https://translatewiki.net.
Change-Id: I3c88217b3e34782e74d167bcd33644dd8d38fed2
2014-06-10 20:45:47 +00:00
Moriel Schottlender 80d1240734 Disable/Enable alignment select widget with checkbox
The test of whether to update the model should only apply to model
and not GUI operations.

Change-Id: I594793cbf69b41cd8fe02067e9985dd1030af95c
But: 66288
2014-06-10 15:18:36 -04:00
Moriel Schottlender 9f2d31cfa0 Disable the size widget for 'frame' images
Frame images are not resizable; disable the media size widget when
the frame type is selected.

Depends on the change in ve-core:
Id1010798d30e2928358acb5694c429b9ab68ad57

Bug: 66353
Change-Id: I8c8da8933c51ba709a834731425d19445009673f
2014-06-10 18:43:25 +00:00
jenkins-bot 5f063f4e5d Merge "Initialize 'default' size properly in media edit dialog" 2014-06-10 18:41:46 +00:00
Trevor Parscal 26186c3c6f Update VE core submodule to master (8f8d29a)
New changes:
84a2e6f Reorganize initialization of default size in MediaSizeWidget
e8d0e8c Update OOjs UI to v0.1.0-pre (99068355d6)
f0e9ad9 Allow for the disabling of the MediaSizeWidget
25c4fce Tighten up context menu items

Change-Id: Id6c97cc3713d22490c7afd806eb9eee282fefd85
2014-06-10 11:25:57 -07:00
jenkins-bot a81313f380 Merge "Add redirect=no to new URL when creating a new page as a redirect" 2014-06-10 17:52:52 +00:00
jenkins-bot cb0f964637 Merge "mw.ViewPageTarget: When saving a page as a redirect, update contentSub text" 2014-06-10 17:50:58 +00:00
Alex Monk 07ac5df5f6 Add redirect=no to new URL when creating a new page as a redirect
Bug: 65621
Change-Id: I8a59958c51f537976843a564c49aed0328d044fb
2014-06-10 17:50:17 +00:00
jenkins-bot 4ff12c78d2 Merge "Remove now-inherited auto-numbered link CSS styling" 2014-06-10 17:46:57 +00:00
James D. Forrester 9c4e874e1b Remove now-inherited auto-numbered link CSS styling
Transferred to MW core in Id765da7b.

Change-Id: I83b490bd3265429c97969c92249efc65aea31d01
2014-06-10 10:41:31 -07:00
Krenair c18fb662aa mw.ViewPageTarget: When saving a page as a redirect, update contentSub text
Or vice versa. Per my comment on bug 65621.

Change-Id: Ic51745103446dda8ea8ff901c4f211c30c39e45c
2014-06-10 17:34:52 +00:00
Krenair 894b63d06a Suppress redirects if veaction=edit is requested
The user probably wants to edit the exact title they requested, rather than
following redirects. This matches the behaviour of the source editor and
action=edit.

Bug: 65926
Change-Id: If2183008b5acaaaf495f35e21ee61c3da1ba3110
2014-06-10 12:28:49 +00:00
James D. Forrester 4be0218bbb Update VE core submodule to master (5f10e73)
New changes:
a53f101 Update OOjs UI to v0.1.0
1fa518b Update OOjs UI to v0.1.0-pre (15f4156bac)
257af53 Use ContextWidget instead of toolbar inside context menu
5f10e73 Follow-up Ia2076a42: Mark getDescription() as @inheritable for Annotation, Node

Local changes to adjust for the ContextWidget changes.

Change-Id: I47f68f5cf1b9583dab9bd0109fa6504481bdfc67
2014-06-09 18:35:08 -07:00
Roan Kattouw cc90e3c832 Followup bd49f97: prevent MWExtensionNodes from having children
MWBlockExtensionNodes would duplicate their children in the output DOM:
they would appear once as restored from originalDomElements, and again
because the contents then got converted to linear model data and
that got converted back to DOM as well.

Bug: 66396
Change-Id: I4513ffc1cf3eb8726ac94252fe1526fac6d8bdf3
2014-06-09 18:01:42 -07:00
Moriel Schottlender cd3cbf1f9b Initialize 'default' size properly in media edit dialog
Make sure that image model and media edit dialog initialize the
default size properties according to the scalable correctly.
Also make sure that on creation of a new node or edit of existing
node's properties follow on whether the image is set to default
size or custom size.

Depends on the ve-core change:
Ia6bb041bfc050a48d8c40bbff4b73ed2893085e2

Bug: 66149
Change-Id: I6f60fba28e11a111bb40a100148ed1f12d518890
2014-06-09 19:39:15 -04:00
kaldari f2e89bad3b Adding ext.visualEditor.mwimage.core to ext.visualEditor.mobileViewTarget
Mobile VisualEditor needs to have images properly formatted in the
surface even though we treat them as alien nodes in mobile.

Change-Id: I3f193f73a783c6e0474a52c058d542646c3bfa93
2014-06-09 22:10:12 +00:00
jenkins-bot e781a4613f Merge "Update VE core submodule to master (3a80662)" 2014-06-09 20:53:21 +00:00
jenkins-bot cda0a0c473 Merge "Send language when making API requests" 2014-06-09 20:52:15 +00:00
Ed Sanders 0953c5bd01 Update VE core submodule to master (3a80662)
New changes:
ffb8ef1 Use this.$ where available
b096a83 *Actual* death and/or *actual* destruction
8b122b3 Destroy old target before initialising new one in demo
49b4d9f Localisation updates from https://translatewiki.net.
ef6ff7d Localisation updates from https://translatewiki.net.
e220b3e Re-order special character mathematical symbols to be degrees, minutes, seconds
3a80662 Localisation updates from https://translatewiki.net.

Change-Id: Id4b5dcb000ad4e7fad55c0838701c312293b8fc8
2014-06-09 21:42:55 +01:00
Translation updater bot a8b131dd05 Localisation updates from https://translatewiki.net.
Change-Id: I1b34343184b68831e741091750b67a825a5b84dd
2014-06-09 20:32:13 +00:00
Krenair bf42b1a742 Send language when making API requests
The API moans about it in a warning, but it works.

Along with edit page checkboxes, this also fixes edit notices.

Bug: 65455
Change-Id: I7c319d43fd06ab04ab4e4cc099ae49b11c31fabd
2014-06-09 20:49:28 +01:00
Translation updater bot 2cf8cb6a5c Localisation updates from https://translatewiki.net.
Change-Id: I35f8f21578dd06f939e978df25e4f9ad6723a637
2014-06-08 19:58:37 +00:00
Translation updater bot f65222160d Localisation updates from https://translatewiki.net.
Change-Id: I5cb5f9ab511aa60a1e9e47d332263d343568c7aa
2014-06-07 19:39:05 +00:00
Ed Sanders 66aa929bf2 Trim linebreaks from block level extensions and preserve
Showing the linebreaks in the textbox just encourages the user
to 'clean' them up. We should preserve their absence to prevent
dirty-diffs, and use them on new nodes.

Change-Id: Ic2827f7f56db15aa5836c6ca978350549ab0123d
2014-06-06 20:57:19 -07:00
Ed Sanders bd49f97553 [BREAKING CHANGE] Separate ExtensionNode in Block/Inline
Previously they were always inline.

MWExtensionNode is now a mixin and classes which inherit it should
now inherit MWBlockExtensionNode or MWInlineExtensionNode.

Change-Id: I0ddcabeb63acdf852e252c41add5233c00723f4c
2014-06-06 20:40:19 -07:00
James D. Forrester 2c00c39393 Update VE core submodule to master (2587549)
Update DM node constructors for I81c60d4a in VE core.

New changes:
2587549 [BREAKING CHANGE] Fix Node construction arguments

Change-Id: I8d4f37b631fe85a78c72407937477963ac49f87a
2014-06-06 20:28:03 -07:00