Commit graph

9171 commits

Author SHA1 Message Date
Brad Jorsch c891a8e8b4 Update ApiResult handling for mediawiki/core change I7b37295e
Change I7b37295e for mediawiki/core deprecates several methods, and more
importantly changes the format of the data returned from
ApiResult::getData(). This change should handle these differences in a
backwards-compatible manner.

Change-Id: I7b37295e8862b188d1f3b0cd07f66ac34629678e
2015-01-08 12:47:56 -05:00
Ed Sanders 144132bd01 Fix styling of MWCategoryWidget to match MW theme
Having MWCategoryInputWidget inherit from ButonWidget makes things a lot easier.

The mousedown behaviour and the positioning of the popup need work but
that is unrelated to this patch.

Bug: T78039
Change-Id: Ic43e64a6a74b8679a15aa8031207ab722e061ab4
2015-01-08 12:40:15 +00:00
Alex Monk 63b41a65ba Fix Parsoid transformation calls
Bug: T86046
Change-Id: I659cc1fe4138856116aee63e3ef8840d8c5d262b
2015-01-07 22:01:51 +00:00
jenkins-bot a84aff99f5 Merge "Work around $.parseHTML( '' ) returning null" 2015-01-07 20:06:38 +00:00
Roan Kattouw f71054d67d Work around $.parseHTML( '' ) returning null
$.parseHTML() always returns an array, except in this one case,
so checking .length of the return value almost always works except
when it blows up in your face.

Filed upsteam as https://github.com/jquery/jquery/issues/1997

Bug: T86056
Change-Id: If133a9df4d573b41b0ecb5bde47b3e6ada053921
2015-01-07 21:02:17 +01:00
James D. Forrester 152a507e11 Follow-up I2342fa5b: Bump wfUseMW to 1.25wmf14 for ParsoidVirtualRESTService
I2342fa5b added a dependency on Id658d925 in MediaWiki core which will first
be available in 1.25wmf14.

Also fix a spelling error.

Change-Id: I20a850f5da58b377b3c208d86b7f5c56f518fdb8
2015-01-07 02:25:45 +00:00
jenkins-bot 9b11db5f18 Merge "Use ParsoidVirtualRESTService" 2015-01-07 01:51:06 +00:00
Alex Monk f8e09abdc8 Use ParsoidVirtualRESTService
Breaking change: Introduces new dependency on php5-curl package.

Relies on Id658d925 which introduces this class into core.

Bug: T1218
Change-Id: I2342fa5b0a185f3e8d46d1ba8fa08278970cafb0
2015-01-07 01:43:46 +00:00
Ed Sanders b3e0403ede Update VE core submodule to master (34acc70)
New changes:
9dfe7eb Localisation updates from https://translatewiki.net.
baa6dff Break out theme-specific CSS
f68fcd9 dist: Put cssUrlEmbed after cssjanus now this is possible so it works for dist

Change-Id: I2af22ab241397c8c84eb8e5e5b4e51f37f8971ac
2015-01-06 16:42:08 -08:00
James D. Forrester 8e2d259812 Update VE core submodule to master (63a2178)
New changes:
d8ed494 Update stylsheets from direction on init
4288b08 Limit number of find and replace results to render
0747440 Use viewport clipping when lots of search results found
2a5603f Update OOjs UI to v0.6.1
32b3431 Fix context comparison on after paste
229240e Localisation updates from https://translatewiki.net.
f7a831d Set hard limit of results to attempt to render, even with clipping
2279843 demo: Destroy the surface when switching away from VE mode
cb43471 Fix documentation of inherited ve.ce.ContentBranchNode methods
7d9a046 Don't attempt to render deactivated selections when collapsed

Change-Id: I8f08eccb531d022667dcc7efd08c6374562ec029
2015-01-06 12:04:18 -08:00
jenkins-bot d4aa0aef7f Merge "Add classes to toolbar UI elements" 2015-01-06 20:02:45 +00:00
Alex Monk e2fa665333 Mark interwiki links as known in LinkTargetInputWidget
Bit messy at the moment.

Bug: T72504
Change-Id: I4b08f1c6d70f371f7f9a05d0856111721f4edb35
2015-01-06 02:15:02 +00:00
Alex Monk 9966298593 Re-focus edit summary input when save dialog is ready
I thought this was already being done elsewhere and so removed it back in Ifb8fd9be

Bug: T75675
Change-Id: Ia015c96ec8332af75428f156e4ed7a25184db96b
2015-01-06 00:54:02 +00:00
Translation updater bot afb0ba2eb1 Localisation updates from https://translatewiki.net.
Change-Id: I9c079b997f247fdef38631d1246842f50fab3c80
2015-01-05 23:09:03 +01:00
jenkins-bot d3194051e7 Merge "MWSaveDialog: Correct whitespace" 2015-01-05 21:09:08 +00:00
Bartosz Dziewoński 74db35b93c MWSaveDialog: Correct whitespace
Change-Id: I9f2ad375bc04e798aa4d2f2a8097a4af0a2b2e4d
2015-01-05 22:05:42 +01:00
jenkins-bot edad08090d Merge "Fix save dialog styling for MediaWiki theme" 2015-01-05 19:33:18 +00:00
Ed Sanders 85988c67ce Fix save dialog styling for MediaWiki theme
* Remove rounded corners.
* Change which borders are used as they change colour on focus.
* Fix margins.

Change-Id: I44f725dfeec5c26f95ba5368ca3848272d66e5be
2015-01-05 19:20:30 +00:00
jenkins-bot 178fdf284c Merge "Fix teardown order of MWAlienExtensionsInspector" 2015-01-05 18:18:54 +00:00
Ed Sanders 9a3c03b553 Fix teardown order of MWAlienExtensionsInspector
Local teardown process was jumping to the front of the queue
resulting in the attributeInputs being emptied before they
were read in updateMwData.

Bug: T85818
Change-Id: I24cb490996048e514895c359dedf5945acdecb0a
2015-01-05 17:58:31 +00:00
jenkins-bot b1355acb52 Merge "Update comment to indicate TD uses jquery.uls.data" 2015-01-05 13:30:17 +00:00
jenkins-bot d68c2daa86 Merge "Don't break "Edit source" link after VE has closed" 2015-01-05 13:28:42 +00:00
James D. Forrester b8d9903f38 Update VE core submodule to master (a687518)
New changes:
6cf26d2 demo: Unbreak eventLogger.html and eventSequencer.html
0ec8fe0 Localisation updates from https://translatewiki.net.
c739533 Destroy toolbar dialog manager when surface is destroyed
652fd88 Localisation updates from https://translatewiki.net.
649c9ce ve.ce.TestRunner: Don't assume there is a 'changeText' before 'endLoop'
8bc7441 imetests: Add a regression test for Polish keyboard input
b12ff72 ve.ce: Remove hacks from Surface#onDocumentKeyPress; add related IME test
8db941e Localisation updates from https://translatewiki.net.
76af411 Localisation updates from https://translatewiki.net.
d8e5766 Localisation updates from https://translatewiki.net.
4c1a0fa Update grunt-css-url-embed
127cd7c Localisation updates from https://translatewiki.net.
1545c82 Localisation updates from https://translatewiki.net.
f40b2ca Update bugzilla links to phabricator
bfd8205 Localisation updates from https://translatewiki.net.
e384bdf Localisation updates from https://translatewiki.net.
1e2e37d Localisation updates from https://translatewiki.net.

Change-Id: I4eb46a831b013aa36678b49575c90388cd5b52c7
2015-01-05 13:01:16 +00:00
jenkins-bot 472e149e4b Merge "Update bugzilla links to phabricator" 2015-01-05 12:07:36 +00:00
Translation updater bot deaa5e5cd3 Localisation updates from https://translatewiki.net.
Change-Id: Ibdecb2cc7d096863ec5540b87e40c4516ff5ddd1
2015-01-04 21:52:03 +01:00
Translation updater bot 1653fcc5eb Localisation updates from https://translatewiki.net.
Change-Id: Ic7c6d5c09ff4ac961ee21ca8ce55a317576e4636
2015-01-03 23:06:07 +01:00
Marielle Volz 5bad19324c Update comment to indicate TD uses jquery.uls.data
Comment updated to indicate that the TemplateData
extension may also register the jquery.uls.data
module.

Bug: T85733
Change-Id: I161662e91148eff515d473ebe5d49d784b21a7a2
2015-01-03 17:31:24 +00:00
Translation updater bot 3ca91ba1d7 Localisation updates from https://translatewiki.net.
Change-Id: I1a2c3fd79e011161ee7895ef73708f8c1f37294b
2015-01-02 22:39:24 +01:00
Alex Monk b539bcd4af Update bugzilla links to phabricator
Bug: T75733
Change-Id: I4bf870b19feac0ee10677829daeb3d46eba3d9d6
2015-01-02 15:47:28 +00:00
Alex Monk 9600d28ebc Don't break "Edit source" link after VE has closed
Bug: T85552
Change-Id: I6db6fcff24110e749e3a0c1aa7c0528527b53d44
2014-12-30 21:07:04 +00:00
Translation updater bot 80b39cd2d1 Localisation updates from https://translatewiki.net.
Change-Id: I25f7afc115e59f7c84f2db939b6c8867206001d8
2014-12-30 21:15:14 +01:00
Amir E. Aharoni cd4bd7a73c Add classes to toolbar UI elements
This cleans up the selectors for the elements on the toolbar
so that they can be tested.

Class names in the form of ve-test-* are added to elements
that have words for labels: 'Paragraph', 'Cite', 'Insert'.
There is no other way to look up these elements in the DOM
except using the UI text, but it is different in different languages,
so this is unusable for the language_screenshots job,
which is multilingual by its nature.

Bug: T76143
Change-Id: Ib0cb67151d893a5d2efccf798d6b25d197ed34d2
2014-12-30 12:16:44 +00:00
Translation updater bot b803443193 Localisation updates from https://translatewiki.net.
Change-Id: I118b0b297529683205d4e141174e96b6005ff3d8
2014-12-28 21:47:44 +01:00
Amir E. Aharoni 84629d1b6c Clarify a comment and correct its spelling
Change-Id: Idd1334d60822a1bfaae2354bca6cb277016f81f7
2014-12-28 00:51:52 +02:00
Translation updater bot cad2056fc9 Localisation updates from https://translatewiki.net.
Change-Id: I2071d84053b2d3465bc66018fc1cbd9bc603d769
2014-12-27 19:55:21 +01:00
Translation updater bot d8e22ca0a0 Localisation updates from https://translatewiki.net.
Change-Id: I48159d5b2b76b993e7308639a84759111e68284e
2014-12-26 09:48:42 +01:00
Translation updater bot 1d73f6b19f Localisation updates from https://translatewiki.net.
Change-Id: I1b29109b8a6ed00d52b7c46ca062394c9f792e57
2014-12-23 21:43:58 +01:00
Translation updater bot fc5451f68b Localisation updates from https://translatewiki.net.
Change-Id: If171c89cdcb8ae66743560d72833590ba4976034
2014-12-22 22:48:38 +01:00
Translation updater bot 0458bd4be3 Localisation updates from https://translatewiki.net.
Change-Id: I0bf3cc41c2cb942c30c9a2ff58744e3ee8253ae8
2014-12-20 22:29:34 +01:00
jenkins-bot 7b47c51b31 Merge "Update VE core submodule to master (b5102a8)" 2014-12-19 19:10:10 +00:00
Cmcmahon 2ebbd0f038 [BrowserTest] This test is unreliable in any version of Chrome
The issue is that when running automatically, upon loading the
page to be edited a second and third time, the cursor ends up
in a random place within the existing text of the article.

The test expects the cursor to always be at the start of the
article text, and this happens in Firefox.

I did a cursory check and I could not reproduce the issue of random
cursor placement upon multiple edits to the same article. There
may be a bug here, but it is not trivial to reproduce.

So let's take this test out of the Jenkins builds in the service
of more reliable green tests.

Change-Id: Ie3dd76c5b40f3035d43e6f0a06327adb70900f60
2014-12-19 09:34:20 -07:00
James D. Forrester 5737584626 Update VE core submodule to master (b5102a8)
New changes:
7f61ab3 Localisation updates from https://translatewiki.net.
003221a Follow-up I4f080228: Re-remove PNG and minimisation-related files from OOjs UI
7b0f9ee build: Update devDependencies related to Karma
3983e8a Actually remove ve.instances
674a024 Fix typo in MobileContext
7bba15f Remove this.$element on destroy but don't nullify
bee267f Revert "Follow-up 2075a46: Fix RTL image build by embedding after flipping"
b5102a8 Localisation updates from https://translatewiki.net.

Change-Id: Ib4313449ea5e6799ca193a9809279b8f2b057400
2014-12-18 18:25:46 -08:00
Translation updater bot a5d417f43f Localisation updates from https://translatewiki.net.
Change-Id: I2f9bb82c98b8091a4150c2b457a815b0576da4ba
2014-12-18 23:24:17 +01:00
Amir E. Aharoni a74a4b49de Remove unnecessary translated messages
visualeditor-help-link is marked as notranslate.

Change-Id: I22ddbf0d51d2753b43a78f8ef879aec1d30a1473
2014-12-18 18:08:19 +02:00
Ed Sanders f49bbf783a Update setupToolbar signature in mobile target
This method now takes arguments to make sure they are passed.

Bug: T78710
Change-Id: Ifba696c2a1b60690bdccd1b58d347c254dec5432
2014-12-18 11:25:34 +00:00
Alex Monk c5d927552a Fix Ia6bf604c: Update another caller to ve.init.mw.Target
MobileViewTarget.

Due to this being missed, pageName was getting set to a jQuery object,
which eventually got passed as a data value in a $.ajax call, causing
jQuery to emit a TypeError: Illegal invocation.

I guess this needs a MobileFrontend commit as well. Don't think it fixes
all the issues with loading VE mobile though.

Bug: T78710
Change-Id: I431a902563f608a7a33028cd60112f39c57000a4
2014-12-18 00:59:04 +00:00
jenkins-bot 6b800c31f8 Merge "Pre-populate LinkCache for page we're editing" 2014-12-18 00:05:11 +00:00
Kunal Mehta 5999490065 Avoid GlobalTitleFail in ApiVisualEditor::diffWikitext()
Change-Id: I93e352d4e1cfef38f9f75f973933c8247d304e2a
2014-12-17 15:41:15 -08:00
Translation updater bot 9ee82f6e38 Localisation updates from https://translatewiki.net.
Change-Id: I0fe19c57399f18ac8707791b2dc272d8ffde3976
2014-12-17 21:52:20 +01:00
jenkins-bot f1103d2bf0 Merge "VE-MW fix commit for I4efbae614e" 2014-12-17 20:03:46 +00:00