Commit graph

7580 commits

Author SHA1 Message Date
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
James D. Forrester 91b24c41ee Update VE core submodule to master (626f5ab)
New changes:
25257c1 Only show debug bar when ve.debug is set
7ec295b Use this.$() in LanguageResultWidget#highlightQuery
bc2bffc Handle collapsed range properly in pushRemoval
e4551c3 Update OOjs UI to v0.1.0-pre (c9b9f8345d)
bdf3b57 Inflict a gruesome death on ve.ce.getOffset() and reincarnate it
778ab84 Calculate offset correctly in inline slugs
38059f8 Localisation updates from https://translatewiki.net.
46bf0df Cleanup special character inspector CSS

Change-Id: If8f1913891d5a4d386dc13bb6d14d2c43be1eeaa
2014-06-06 19:17:24 -07:00
jenkins-bot 00cda59374 Merge "Don't send invalid titles from the link inspector to the API" 2014-06-07 01:01:49 +00:00
jenkins-bot d99ae6d19e Merge "Split off core image components from pieces needed for image inspector" 2014-06-07 00:56:45 +00:00
jenkins-bot dc5d7351d3 Merge "MWReferenceDialog: Allow swapping of existing references for others" 2014-06-07 00:55:19 +00:00
Krenair fdc3cb2710 MWReferenceDialog: Allow swapping of existing references for others
By disabling the selection button instead of hiding it.

Also make sure that there are other references before re-enabling it.

Bug: 65689
Change-Id: Ifb3d6ab6eacb71909eb13e3a72e971b49e2595c1
2014-06-06 16:30:03 -07:00
kaldari 849328c41f Split off core image components from pieces needed for image inspector
In mobile we define images as alien nodes, but still need for them to
be properly styled. This will allow us to give them proper HTML/CSS,
but without loading all the inspector code that we don't need.

Change-Id: I801340bd9c40270b8e77bde3d18f721866f753e6
2014-06-06 14:51:21 -07:00
Translation updater bot df70c0e51a Localisation updates from https://translatewiki.net.
Change-Id: Ie5981d46acfc1f2abb10ad3e751897a67d0d3605
2014-06-06 21:48:23 +00:00
Krenair 1ef8a31cd4 Don't send invalid titles from the link inspector to the API
Bug: 66135
Bug: 66139
Change-Id: I616484b44efa1923017a7cb197c5d657f0f12f8c
2014-06-06 21:10:43 +00:00
Ed Sanders a425ab4812 Move save panel init to getReadyProcess
Bug: 66168
Change-Id: I903d2892b56e531fa8d4d44873a3889b637e0f09
2014-06-06 11:51:27 -07:00
jenkins-bot 06705465ec Merge "Fixing issues in the alignment select in Media Edit dialog" 2014-06-06 01:32:49 +00:00
Moriel Schottlender 8bca6add25 Fixing issues in the alignment select in Media Edit dialog
Fixing the behavior of alignment select and checkbox in the edit
dialog. Adding a check on all UI events to make sure they update
the model only if the model value is different than the UI value.

Also adding the ability to check the default direction of a
specific node type, to predict default alignment values.

Bug: 65916
Change-Id: I82f624fa788383dec0a12afb473aef01593e670e
2014-06-05 21:20:44 -04:00
Translation updater bot cc41066a29 Localisation updates from https://translatewiki.net.
Change-Id: I444e22b7097f8f42fc8fdf5b89c0d1a0515993a4
2014-06-05 20:47:37 +00:00
Cmcmahon 56684a9847 [BrowserTest] Update gems in support of WMF Jenkins
Next step in porting from Cloudbees

Change-Id: I1a9cc0a53f6d3edf01826ffbeb70b3f6f20da8fe
2014-06-05 10:01:45 -07:00
jenkins-bot 7573927724 Merge "[BrowserTest] new test for page options" 2014-06-05 16:56:46 +00:00
James D. Forrester 6e7bd901e7 Update VE core submodule to master (7a4d039)
New changes:
e33aeaf Update OOjs UI to v0.1.0-pre (6379e76bf5)
c0bfdb0 Apply 'default' or 'custom' size on load
62da3a2 Localisation updates from https://translatewiki.net.
001956f Grunt: Clean up
644d010 Move comment down so DOCTYPE is on first line
55b1ff9 Skip history#replaceState if not available
2f39260 Localisation updates from https://translatewiki.net.
34e22ae Fix potential race condition with nulling out Dialog/Inspector fragment
7a4d039 Update OOjs UI to v0.1.0-pre (cbc62ac803)

Change-Id: I9d04bfcb30ced7c98c0f72350f1f25732a76205b
2014-06-04 17:18:28 -07:00
jenkins-bot a733ea2aa3 Merge "Use promises for confirmation dialog instead of done event" 2014-06-05 00:16:21 +00:00
jenkins-bot 27abd137fc Merge "Update image size after changing type" 2014-06-04 23:50:54 +00:00
Moriel Schottlender 8ca025be5e Update image size after changing type
Make sure that if the image has default dimensions set up in the
media edit dialog, the scalable (and image CE rendering) receives
the correct dimensions.

Bug: 65886
Change-Id: I6bd2d1681a3d780554767fe77b2640795170184f
2014-06-04 16:48:43 -07:00
jenkins-bot cc14f33be9 Merge "Followup to small SVG default size" 2014-06-04 23:44:24 +00:00
Moriel Schottlender 4355ea4f10 Followup to small SVG default size
Make sure svg drawings on block images have the default size as
the wiki default, no matter their original set size.

Also took the opportunity to clarify the synchronization method
for scalable and image type in ve.dm.MWImageNode and call it when
the image model is loaded to make sure the details are always
synchronized before edit.

Followup to I682d832e456a501836f33ed1dfc7dbd78a4edf53

Bug: 62893
Change-Id: Ic47016d171634c532092067957cc2c3d431e9746
2014-06-04 19:38:15 -04:00