Commit graph

8517 commits

Author SHA1 Message Date
Moriel Schottlender f4dc6fd240 Add 'autovalue' to TemplateData
Allow for an auto-value for parameters in TemplateData, and make sure
this autovalue is inserted as text when parameter is loaded. This is
mostly useful for referencing date or other dynamic templates inside
parameters.

Bug: 52029
Change-Id: I6203530798ffaa62cb26190c70f7ce391bddf123
2014-09-20 00:52:23 +00:00
Translation updater bot e88150cc05 Localisation updates from https://translatewiki.net.
Change-Id: Icb41461e1f20dc79e5f6fee637c7fadd319a79b0
2014-09-19 22:07:38 +02:00
James D. Forrester 889d8e6d5f Update VE core submodule to master (90bb24f)
New changes:
65d4858 README: Add devDependencies badge
4d88b3a Replace boolean checks of getSlugAtOffset with hasSlugAtOffset
b0edb58 Add getNativeRange method with optional DM range argument
f59bb20 Separate computation of highlights from rendering
4face58 Remove getSelection*Client* methods
c94234a Rename inlineRects to startAndEndRects everywhere
69c42c2 Allow specification of range when getting selection rectangles
7883250 Provide a method to get all the rectangles for a given selection
c346ebd Work around Chrome's Range.getClientRects bug

Change-Id: Idb695a64353177e5e5210bae3c4202e701f4d95e
2014-09-18 17:49:40 -07:00
Roan Kattouw 34ec304ec7 Update VE core submodule to master (d6904b5)
New changes:
925ed5c Move sluggability methods to model
a618491 Calculate slug positions in the model
b8fb05e Make the trigger demo kind of work again
e41d22e Update OOjs UI to v0.1.0-pre (ec785c2c64)
4119470 build: Make headers atop dist files suitable for distribution
fca4fec Follow-up cc657c4: Change strikethrough key command to not clash with Macs
a29a561 Add hasSlugAtOffset to DM document
9f47efb Move getRelativeOffset, getRelativeRange, getNearestFocusableNode to model
aa35e96 Remove hard coded types from canHaveSlugBefore and fix logic
49a239b Emit 'position' and 'contextChange' events correctly
3c50321 Refactor out finding of CE focusedNodes
d6904b5 Update OOjs UI to v0.1.0-pre (f2c3f12959)

Local changes:
* Move ce.Document tests to dm.Document

Change-Id: Ifa5abd0341e858b20e73e9071d597a25112cadfb
2014-09-18 17:03:46 -07:00
jenkins-bot 4025d1a723 Merge "Remove 'new' keyword where not used" 2014-09-18 23:24:03 +00:00
Ed Sanders 69ae829737 Remove test for functionality tested in core
Add comment to remaining test explaning its purpose.

Depends on Id7c291b in core.

Change-Id: Ia545edac3b2adbd6d45ed5427a9e5e6f9df0da54
2014-09-18 13:15:24 -07:00
Ed Sanders 480d9c05fc Remove 'new' keyword where not used
Factory methods create the instance internally.

Change-Id: I1daa9751536948edc98bd71305a942418806c459
2014-09-18 12:54:41 -07:00
Translation updater bot ad7529b283 Localisation updates from https://translatewiki.net.
Change-Id: Id007fb0b058d084cbcf5e3c0fcc426f205661e17
2014-09-18 20:55:34 +02:00
jenkins-bot 19375738ea Merge "README: Add devDependencies badge" 2014-09-18 18:43:15 +00:00
James D. Forrester abe059df2b Update VE core submodule to master (6f1b98e)
New changes:
247ee74 Set size to default on 0 value
dd00977 ve.ce.CommentNode: Correct comments formatting
bafad68 Update OOjs UI to v0.1.0-pre (24ac83a472)
0b24cbc Localisation updates from https://translatewiki.net.
a6ca80a Followup cc657c4: make code and strikethrough key commands actually work

Change-Id: Ic0dad055bc7e725f23de947ff56a83e463239cc6
2014-09-17 17:25:09 -07:00
Translation updater bot 8e9a35fe37 Localisation updates from https://translatewiki.net.
Change-Id: I675e2fd39fa8084ba3fbc3740c36a7b48d7e1b0f
2014-09-17 22:47:23 +02:00
Alex Monk 216e3088a3 Followup I35e55658: Update wfUseMW call
Required I5d894f8a, which was added in 1.24wmf20

Change-Id: I7ecb0bbcf855179bf7107c95c939c0f9bec51fa8
2014-09-17 21:23:37 +01:00
jenkins-bot 82e62f8ec6 Merge "Get confirmation when trying to insert/edit template/citation with required parameters missing" 2014-09-17 19:33:48 +00:00
Alex Monk b3ba809ccb Get confirmation when trying to insert/edit template/citation with required parameters missing
Relies on I5d894f8a in MW core. We'll need to update our wfUseMW when that gets merged.

Bug: 50747
Change-Id: I35e55658a3990121afe4d996ef4ee06547d2aa0c
2014-09-17 12:31:23 -07:00
jenkins-bot d59053575e Merge "Refactor a bunch of CategoryInputWidget code, tear out dead/broken redirect handling that should be rewritten" 2014-09-17 02:13:22 +00:00
Roan Kattouw cf1a889ac8 Update VE core submodule to master (5f4b740)
New changes:
a047e72 [BREAKING CHANGE] Create ve.dm.Focusable and store focusable flag there

Local changes:
* Add new ve.dm.FocusableNode mixin where required

Change-Id: Ie9ee2de05acfe3c4c62c4864e65bd20397d6a069
2014-09-16 18:45:22 -07:00
jenkins-bot bdbc75473b Merge "Validate size widget when activating/deactivating apply button" 2014-09-16 23:54:26 +00:00
jenkins-bot 0f4e85ce11 Merge "Template dialog: Show up to the limit of parameters, not up to the limit + 1" 2014-09-16 23:44:55 +00:00
jenkins-bot d2bcc9dc05 Merge "Show pending state on action button and keep dialog open when switching to source mode" 2014-09-16 23:44:22 +00:00
James D. Forrester 30d50cb900 Update VE core submodule to master (3e09af1)
New changes:
b6898f6 Localisation updates from https://translatewiki.net.
a9c15e4 Followup 80dd016: avoid using XMLSerializer when not absolutely necessary

Change-Id: I362c6d6e1e55c4c4757b25bdff4e4f29310832f8
2014-09-16 16:07:31 -07:00
jenkins-bot 370aadd619 Merge "Make <visualeditor-preference-enable> message respect plural rules" 2014-09-16 21:43:10 +00:00
James D. Forrester 2c068ac2dd README: Add devDependencies badge
Change-Id: I819b34e0150f906b6e753994ea3ed57e56d3390a
2014-09-16 13:39:31 -07:00
Moriel Schottlender 20c4fbbc1e Validate size widget when activating/deactivating apply button
In the Media Dialog, make sure the size widget is valid before
applying or disabling the apply/save buttons.

Bug: 70861
Change-Id: I6ec9eb69fe6576f1c668270b12157de9910f0214
2014-09-16 14:48:40 -04:00
Translation updater bot 2ac26314b7 Localisation updates from https://translatewiki.net.
Change-Id: I8bc42c851314fe3d70068403b77a709f94be381f
2014-09-16 19:48:38 +02:00
James D. Forrester 92a6fdbb02 Make <visualeditor-preference-enable> message respect plural rules
Change-Id: I4660a530cd50a179c06a82295b6a24cae1b741b6
2014-09-16 10:35:57 -07:00
jenkins-bot 078f30f781 Merge "Use ve.parseXhtml() and ve.serializeXhtml()" 2014-09-16 02:39:39 +00:00
James D. Forrester 906cfc7a9b Update VE core submodule to master (ebc8569)
New changes:
80dd016 Work around IE's normalization of style attributes by abusing XML parsers

Change-Id: I7ff4d6c4aa2e85c87c7c1372ba94b3e18d58f1e9
2014-09-15 19:35:05 -07:00
James D. Forrester 516927e786 Update VE core submodule to master (0facbc0)
New changes:
cc657c4 Add keyboard shortcuts for strikethrough and code annotations
7d7f803 build: Bump miscellaneous devDependencies to latest
6de5bbf Update OOjs UI to v0.1.0-pre (49b64bdba7)

Change-Id: Iba45cd1382fdb2070093058252e0e2dcb7442c76
2014-09-15 18:45:33 -07:00
Roan Kattouw c4857a1f82 Use ve.parseXhtml() and ve.serializeXhtml()
Introduced in VE core in I0fb47f7c91f61.

In IE, this fixes corruption of style and bgcolor attributes.
In other browsers, the only change is that we now use
XMLSerializer rather than .outerHTML to serialize, but as
far as I can tell this isn't materially different. XMLSerializer
correctly uses HTML semantics when given an HTML document.

Bug: 70856
Change-Id: If48555fa4763e763484bbabfa0bc4ded0d0a5c58
2014-09-16 01:41:53 +00:00
jenkins-bot 6ec7789be6 Merge "Add contextual help to all remaining meta dialog controls" 2014-09-16 01:31:12 +00:00
jenkins-bot 074cb371da Merge "build: Bump miscellaneous devDependencies to latest" 2014-09-16 00:44:02 +00:00
James D. Forrester 712ea472d3 Add contextual help to all remaining meta dialog controls
Bug: 51798
Change-Id: I3f8141485c89e585595dbb853d32e69cbcaebac6
2014-09-15 16:26:12 -07:00
Alex Monk ceafcd5937 Check whether there is a range selected when enabling/disabling re-use citation tool
If there is no range selected, disable regardless of whether there are references in the document or not.

Bug: 70870
Change-Id: I2c281fefe7915345fafb735b3788166ab8118049
2014-09-16 00:18:23 +01:00
Cmcmahon b6b93fc860 [BrowserTest] inadvertent clash of identifiers from earlier update
Change-Id: I1a86db0f4fa9ee0f327cf371b76c9ebf25ddc17e
2014-09-15 14:48:49 -07:00
Cmcmahon e71699f06a [BrowserTests] Pick up the latest webdriver to run latest Firefox
Pure maintenance

Change-Id: I709bcae2a609904c5ce75e22c61588d5012dec17
2014-09-15 13:48:12 -07:00
Alex Monk 65b232a35b Show pending state on action button and keep dialog open when switching to source mode
Instead of doing a blocking overlay, we're simply keeping the dialog open,
which is necessary for the pending status of the action buttons anyway.

Requires Ib2c8f336 in OOUI

Bug: 65012
Change-Id: I65b5de4a1666a81b157a71f6fec490007689eb44
2014-09-15 20:44:55 +01:00
James D. Forrester 8cde565899 Template dialog: Show up to the limit of parameters, not up to the limit + 1
Bug: 70609
Change-Id: I26dc9c17fe7572d7b864000781fff6583edf9f9b
2014-09-15 12:13:47 -07:00
James D. Forrester 350a4220e2 Update VE core submodule to master (8fb94f1)
New changes:
80b26bc ve.ce.Surface: Insert new paragraphs after empty nodes rather than before
c2b06b2 ve.ui.AnnotationInspector: Apply existing annotations to inserted content
de5eef0 Strip Start/EndFragment comments from paste
79f632b Localisation updates from https://translatewiki.net.
21eab72 Update OOjs UI to v0.1.0-pre (073f37e258)

Change-Id: I78c3c29ea05ccf136b28bd2a521337d624e0702a
2014-09-15 10:34:06 -07:00
Translation updater bot e4a8b251eb Localisation updates from https://translatewiki.net.
Change-Id: Ifb2e827be70c18a7976d36dac4ba2f2c3786ba48
2014-09-15 02:11:59 +02:00
James D. Forrester 198c240fcc build: Bump miscellaneous devDependencies to latest
Updates:
* grunt                  0.4.2 -> 0.4.5
* grunt-banana-checker   0.1.0 -> 0.2.0
* grunt-contrib-csslint  0.2.0 -> 0.3.1
* grunt-jscs             0.6.1 -> 0.7.1

Change-Id: If1d612cd4ad9b45b0d249931339882f4bc238c74
2014-09-13 23:40:06 -07:00
Translation updater bot 7faa561782 Localisation updates from https://translatewiki.net.
Change-Id: I32071f21af9ed6e606aa7aa23982aaef29641ee6
2014-09-13 00:50:00 +02:00
James D. Forrester e3267e13d8 Update VE core submodule to master (f646507)
New changes:
b6881c5 (Kind of) fix treatment of strange dir values
4e2ce2b Account for the case where a FocusableNode has an empty outerRects array

Change-Id: I3fbdd471a368fb4171e5213751544b4c263f0bf8
2014-09-12 15:03:01 -07:00
jenkins-bot 1063342789 Merge "Don't return undefined in ve.init.mw.Platform#getLanguageName" 2014-09-12 21:46:34 +00:00
Roan Kattouw 7545868bc8 Don't return undefined in ve.init.mw.Platform#getLanguageName
When the language isn't found, return an empty string
instead of undefined.

Bug: 70731
Change-Id: Ia28e0d24e57e3a24414e04bee58ec76459665ad4
2014-09-12 14:43:31 -07:00
James D. Forrester 686e294d79 Update VE core submodule to master (badcac5)
New changes:
badcac5 ve.getStartAndEndRects returns null for empty rect lists

Change-Id: I7236cb20101eea274aa04732e7d3d7e1e216a5ff
2014-09-12 14:40:13 -07:00
jenkins-bot 98d2a9c604 Merge "Update VE core submodule to master (028e8cb)" 2014-09-12 18:03:29 +00:00
Cmcmahon 954fec83e1 [BrowserTest] UI text changed s/Cancel/Resume editing/.
Change-Id: I774b6a3cf02627ea0399377b9f6d57ca474ead07
2014-09-12 10:53:59 -07:00
Cmcmahon aa67deaeef [BrowserTest] add one test to validate new ie11 build
Change-Id: I9add1caf0083e757d0a7f6da513bd798fd74e97e
2014-09-12 08:55:14 -07:00
lokal-profil dbb94ea221 Correct typo in visualeditor-dialog-meta-settings-redirect-statichelp
Change-Id: Ibd9459903f8ce278e414fd7ba891f653109f913d
2014-09-12 15:26:11 +00:00
James D. Forrester 702a38d700 Update VE core submodule to master (028e8cb)
New changes:
7e271a4 Add containsRange method to ve.Range
4745931 Convert all instances of assert.equal to assert.strictEqual
a8fab7a Rename frequency to pollInterval in SurfaceObserver
8e8217e Bind ve.ce.Surface#onDocumentMouseUp to the entire document on mousedown
29029c3 Localisation updates from https://translatewiki.net.
8345488 DomRange / getOffset edge cases
3c4826a Cache $documentNode in surface view
2fcc4c0 Trigger selection update on selectionchange or mousemove events
67aa7dd Fix JS error due to typo in dm.Converter

Change-Id: I846318357ba1f3a8ee59c4384b5dceef7a9e70ff
2014-09-11 19:14:55 -07:00