Commit graph

8294 commits

Author SHA1 Message Date
jenkins-bot 3d0aae0dcd Merge "Stop "Edit pages on double click" from affecting VE" 2014-09-25 22:52:19 +00:00
jenkins-bot 5e92ee61e0 Merge "Prevent exception throwing in getFilename of MWImageNode" 2014-09-25 21:50:43 +00:00
jenkins-bot ab7c72e0fd Merge "Clean up various PHP hook functions" 2014-09-25 21:31:53 +00:00
Translation updater bot dbc976927b Localisation updates from https://translatewiki.net.
Change-Id: I9f63163e0ad6c10f13d2aa5347aed1ec556c7df3
2014-09-25 23:08:13 +02:00
Alex Monk 77fc7e7d6c Stop "Edit pages on double click" from affecting VE
Relies on I0f6225b2

Bug: 53058
Change-Id: Ibd363dfb9da7d91055c541a83969d23401297603
2014-09-25 21:19:18 +01:00
Željko Filipin ac804a537a [BrowserTest] Disable screenshots for broken scenarios
Workaround for bug 71298.

Change-Id: I23ed22f8859a09821b6ef5edac8eff4ca0f3b17c
Paired-with: Amir Aharoni
Bug: 71298
2014-09-25 15:18:47 +02:00
Kunal Mehta 1470d7cf39 Clean up various PHP hook functions
* Add type hints
* Use $skin->msg instead of wfMessage where available
* Minor doc fixes
* Use Title::inNamespace()

Change-Id: I406a0a40e785947fbdc09707597ccf9c50d6f9be
2014-09-24 22:11:47 -07:00
jenkins-bot 5dcd099862 Merge "Really fix CategoryWidget checks for redirects to hidden categories this time" 2014-09-24 22:50:32 +00:00
Alex Monk 89f8334d58 Really fix CategoryWidget checks for redirects to hidden categories this time
Previous commit dealt with only part of a related problem.

Change-Id: Iffe319d5b6d1a5ea91acca26a9613e07bea0d8fe
2014-09-24 23:18:44 +01:00
jenkins-bot a6557cb051 Merge "Unbreak category widget check for hidden pages" 2014-09-24 22:08:33 +00:00
Alex Monk ea9ce0f5b0 Unbreak category widget check for hidden pages
Fixes Icb62b9b2. I have no idea how I managed to screw this up.
Was also causing an error in console when one of the categories was a redirect

Change-Id: I0321c8be1386cb010c3babb33e08fae0fcaf75ce
2014-09-24 22:59:53 +01:00
Translation updater bot 421bcc506e Localisation updates from https://translatewiki.net.
Change-Id: I6356e966774626f830769f4e546b4859ce98ae21
2014-09-24 22:21:13 +02:00
Ed Sanders 26751dc4a1 Prevent exception throwing in getFilename of MWImageNode
This doesn't happen in real life (as resource is always set) but
it allows us to contruct these nodes from the factory with no data.

Change-Id: Iea146f5dc128ad9d0f36a79b6fe67d622767d46c
2014-09-24 20:43:57 +01:00
Roan Kattouw 6347274f47 Update VE core submodule to master (6e68242)
New changes:
c06fa64 Account for isValid() becoming async
12e4840 Account for WhitespacePreservingTextInputWidget#getValue being called early

Local changes:
* Make MWLinkTargetInputWidget#isValid asynchronous

Bug: 71237
Bug: 71246
Change-Id: Iab83e743f99973f01a54b23fd5ddf1081f7effd6
2014-09-24 12:18:16 -07:00
Roan Kattouw 8517777b9f Update VE core submodule to master (8d5ec7a)
New changes:
8d5ec7a [BREAKING CHANGE] Rename ve.Document.getNodeFromOffset to getBranchNodeFromOffset

Local changes:
* Update calls for rename of getNodeFromOffset to getBranchNodeFromOffset

Change-Id: Ibc69f5a5deeed5698368bb19b30f14497c579e90
2014-09-24 11:34:14 -07:00
Roan Kattouw 679b880ce7 Update VE core submodule to master (9e69dba)
New changes:
78dfa9d Move deletion part of handleDelete logic to surface fragment
2f964f9 Tweak traverseUpstream documentation and code style
54dd25d Add expand method to ranges, finish unit test coverage
a0d94c0 Make newFromTranslatedRange a method (translate)
5eafb4d Tolerate null boundingRect in all code paths in DesktopContext#updateDimensions
35b1f0d Prevent page elements from displaying on top of highlights
c864eff ve.dm.Surface: Fix documentation typo
5f869bc Don't drop 1px rects for FocusableNodes if all we have is 1px rects
65c782d Update OOjs UI to v0.1.0-pre (880100c45e)
b149390 Calculate selected node on change and emit contextChange
e032cea Fix documentation in ve.Document
eaab57b [BREAKING CHANGE] Remove ve.isArray and use Array.isArray instead

Change-Id: I1367c721b285ca093ac78aee59a9e9a188ad552f
2014-09-24 11:10:25 -07:00
jenkins-bot f67989eaa5 Merge "Replace use of ve.isArray with native Array.isArray" 2014-09-24 03:05:57 +00:00
jenkins-bot 02a85676b9 Merge "Use LinkCache instead of an object in MWCategoryWidget to store hidden status (to be shared with the input widget)" 2014-09-24 01:06:38 +00:00
Timo Tijhof 66de06b0fa Replace use of ve.isArray with native Array.isArray
Change-Id: Ibc45e0fd80db7da872f6ef934cef915be9366e06
2014-09-23 17:58:09 -07:00
Alex Monk 93e4c59e4f Use LinkCache instead of an object in MWCategoryWidget to store hidden status (to be shared with the input widget)
Change-Id: Icb62b9b27ea1d61097d059fa268cc4834d46fc9f
2014-09-23 23:56:27 +01:00
jenkins-bot a5d8b636eb Merge "ve.ui.MWLiveExtensionInspector: Fix comment typo" 2014-09-23 21:57:31 +00:00
Bartosz Dziewoński 5849e7b8f8 ve.ui.MWLiveExtensionInspector: Fix comment typo
Change-Id: I6e35a5006364ba44de2804e6cd6cd79d6b73c0c3
2014-09-23 23:54:33 +02:00
Translation updater bot 625669f12b Localisation updates from https://translatewiki.net.
Change-Id: I55f61f07576931a694a9686495d899761f4a32fb
2014-09-23 22:04:58 +02:00
James D. Forrester 52a69e24f1 Update VE core submodule to master (563666a)
New changes:
e066826 Localisation updates from https://translatewiki.net.
dabe910 Localisation updates from https://translatewiki.net.
3fc0e0a SurfaceObserver should observe the surface
d86d4df Update OOjs UI to v0.1.0-pre (bab8befc94)
563666a Converter: Allow Nodes to return empty arrays if they want not to be output

Change-Id: Iba784d8278609e3c1f95eafd595528e8097be8ff
2014-09-23 11:32:56 -07:00
Translation updater bot c1d2851241 Localisation updates from https://translatewiki.net.
Change-Id: I3b09d38f6b8ab3652c0338acbdc34319b848e643
2014-09-22 21:50:45 +02:00
Translation updater bot ab3474f032 Localisation updates from https://translatewiki.net.
Change-Id: I80bb743ce8f0dd0e29ee3518e42841de7ea18cd6
2014-09-21 22:01:15 +02:00
Translation updater bot ba97a1ac6e Localisation updates from https://translatewiki.net.
Change-Id: Ief48d85ab343584bf2b230894a7b5c1f67c83a3a
2014-09-20 21:44:23 +02:00
Seb35 8029ffb16b Check the existence of BetaFeatures before adding the 'visualeditor-enable' preference
To avoid adding it two times.

Bug: 71088
Change-Id: I687b2344731188133d32faac48e36245e9b03e76
2014-09-20 20:05:42 +02:00
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 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