Commit graph

8346 commits

Author SHA1 Message Date
James D. Forrester 6340a5a3e8 Update VE core submodule to master (d6d6db4)
New changes:
378bc4c Polyfill Node.prototype.normalize in IE
d54cd30 Call onTargetInputChange when the link inspector is ready
00f7a00 Only undo if an initial annotation was applied
5d39686 Make filibuster code debug only
fdda60a Track selectionBefore in staging transactions

Change-Id: I2a70d599838b3575c5b0a63ffc60d023b04a8e80
2014-08-29 12:05:12 -07:00
jenkins-bot 7964c5874c Merge "[BrowserTest] update Cite element locators" 2014-08-29 17:16:22 +00:00
Cmcmahon 1b45b120e8 [BrowserTest] update Cite element locators
Also small refactor for readability

Change-Id: I65c1b589413bdb7de784aa3c4e0e189fca10bab3
2014-08-29 10:12:31 -07:00
jenkins-bot 68b3b5b9e1 Merge "Add missing ve.Filibuster.js to manifest" 2014-08-29 16:42:09 +00:00
Ed Sanders 0e84c912a3 Add missing ve.Filibuster.js to manifest
Change-Id: I7ea93a2c5b16ac91852506509cc09f97b47f46d3
2014-08-29 17:39:13 +01:00
Cmcmahon 3a964326a5 [BrowserTest] element locator changed
Change-Id: I456cd0718513e6338ccbbae86634d3e3bd1464b9
2014-08-29 09:12:50 -07:00
jenkins-bot 3286115c21 Merge "Return undefined, not null from onbeforeunload" 2014-08-28 23:11:30 +00:00
jenkins-bot f79d099490 Merge "In LinkTargetInputWidget, put existence status into LinkCache" 2014-08-28 22:17:03 +00:00
Alex Monk 51d2de4547 In LinkTargetInputWidget, put existence status into LinkCache
Bug: 69886
Change-Id: Ib37ba971c006c0bedc94f3ea9f1185461c9617b5
2014-08-28 23:09:13 +01:00
jenkins-bot effdff7378 Merge "Greylist IE11" 2014-08-28 21:58:35 +00:00
Roan Kattouw 4fc69878e1 Greylist IE11
There are still bugs and we're not marking it as a supported
browser yet, but it's no longer unusable.

Bug: 50085
Change-Id: I86b152da4c5dd895335d6f76b91c44f2eb3cd1a4
2014-08-28 21:51:18 +00:00
Roan Kattouw f0cadeca42 Return undefined, not null from onbeforeunload
IE doesn't accept null as a "do nothing" value, only undefined.
If you return null, it'll show a popup with the text "null".

Change-Id: I984a7ded483c4c178cbca2a9af9abd895e6ded56
2014-08-28 14:38:49 -07:00
jenkins-bot 7492cc7949 Merge "Pick up 'summary' parameter from URL to use as initial edit summary" 2014-08-28 21:29:07 +00:00
James D. Forrester adb0593c92 Update VE core submodule to master (be42edf)
New changes:
7a2e989 Update OOjs UI to v0.1.0-pre (43f379c884)

Local changes:
Eliminate all references to Agora, now Minerva

Change-Id: I497e122a35090a909b1fbb00d0a9487d97e09da1
2014-08-28 13:51:10 -07:00
James D. Forrester a9b01bdc8d Update VE core submodule to master (15cce1d)
New changes:
235faf9 Try a bit harder not to create empty text nodes
72f9aff Followup 355be3ed: fix getOffset() behavior inside block aliens
c81dd57 Trigger handleDelete inside onCut
edb4c60 Only block language change if dir hasn't changed
15cce1d Localisation updates from https://translatewiki.net.

Change-Id: Ic205fd2ae9ddc3f870b74a49bfc02fea9a14546a
2014-08-28 13:45:34 -07:00
Translation updater bot 8084ab0198 Localisation updates from https://translatewiki.net.
Change-Id: Ifc5808737c12f0a334cc6bca3c73620145b921e8
2014-08-28 22:32:08 +02:00
jenkins-bot aed40d6d04 Merge "Fix various bugs in our Monobook stylesheet" 2014-08-28 17:43:40 +00:00
jenkins-bot 1135d066ac Merge "Make the image model persistent" 2014-08-28 16:08:03 +00:00
Moriel Schottlender e34fdae776 Make the image model persistent
Make sure the image model can switch parameters when the image
source is switched, rather than having to instantiate a new
image model.

Also, when the image is changed, retain aspect ratio but make sure
to preserve the width of the previous image (unless the new image
is smaller)

Added 'resizeToBoundingBox' and 'scaleToThumbnailSize' static methods
in MWImageNode that return scaled dimensions based on the image
dimensions and the bounding box detals.

Depends on core change Idbb8b29db8e

Bug: 69450
Bug: 68000
Change-Id: I4327c86a9127f46da5522dc1197411fda757d5a4
2014-08-28 12:04:49 -04:00
James D. Forrester f99a0a4bc0 Update VE core submodule to master (c9304ac)
New changes:
8592238 Localisation updates from https://translatewiki.net.
446b53d Remove unnecessary execCommand('undo') from onCut

Change-Id: I804eb7dbb0205780bdae06db45cc9c94f09eab02
2014-08-28 08:34:26 -07:00
Alex Monk 2748366a8e Pick up 'summary' parameter from URL to use as initial edit summary
To match the wikitext editor

Bug: 69501
Change-Id: I3cfc269aa344d89cc30af29699aca70eda5565e2
2014-08-28 02:56:14 +01:00
jenkins-bot d220e03cf8 Merge "Link target input widget: Make '' an invalid link target" 2014-08-28 00:04:43 +00:00
Roan Kattouw 03c8ad7744 Fix various bugs in our Monobook stylesheet
* Toolbar was too tall
** The actions toolbar is nested in the main toolbar, so the rule
   increasing the font size by 25% for toolbars applied to it twice
* Font size in link suggestions was too big
** Remove 25% font size increase from overlays
** Add it back on the context (otherwise it's too small)
** But only on the main surface's context (otherwise contexts in dialogs are too big)
* Make highlights and context appear below, not above, toolbar menus
** z-index: 4 was too high for the overlay, because MenuToolGroup also has 4
** But the default of z-index: 1 is too low because it puts dialogs behind the surface
** z-index: 2 seems to work

Bug: 69949
Change-Id: I19da270abcdbe526ff213f0eb7d0859b48276930
2014-08-27 23:28:20 +00:00
jenkins-bot 7be69944d6 Merge "Toggle trash button (on transclusion dialog) visibility when changing to non-parameter pages" 2014-08-27 21:28:33 +00:00
Alex Monk c71d06f1e0 Toggle trash button (on transclusion dialog) visibility when changing to non-parameter pages
Bug: 70101
Change-Id: Id18f910ea9f96121584ece0270dda3f8529478dd
2014-08-27 21:00:34 +01:00
Translation updater bot 5ff9730ade Merge "Localisation updates from https://translatewiki.net." 2014-08-27 19:28:34 +00:00
Translation updater bot a6b1644868 Localisation updates from https://translatewiki.net.
Change-Id: I0ad92ae91cc13f7c3466839d7427a342b95f2238
2014-08-27 21:27:45 +02:00
Roan Kattouw d8f9884b15 Update VE core submodule to master (9e92194)
New changes:
e06966f Fix the newline bunny-hop bug harder
bb7afae dm.NodeFactory: Use .lookup() instead of .create().constructor
d18a33f Localisation updates from https://translatewiki.net.
fce9ad2 Check for selection in ve.ce.Surface#onDocumentFocus

Change-Id: I3dd706d956c409418c761a95cc631575fb36b8e9
2014-08-27 10:41:43 -07:00
Alex Monk 5e5cfc19d9 Link target input widget: Make '' an invalid link target
Bug: 70015
Change-Id: Ia984b88009a6373223fb9378b9a10e8313c8b22e
2014-08-27 18:36:08 +01:00
Cmcmahon af988015bb QA: update to fix deprecated API token call
Change-Id: Ibad3aa773dcf5390eb7c729a2731ef2fe76b174c
2014-08-27 09:27:52 -07:00
jenkins-bot 323fb9e712 Merge "Remove delete button from required parameters in template dialog" 2014-08-27 10:04:39 +00:00
jenkins-bot 5d482e16af Merge "Make the Resolve conflict button actually appear" 2014-08-27 01:08:44 +00:00
Roan Kattouw 6fce4c6359 Make the Resolve conflict button actually appear
If you got an edit conflict, the save dialog would
dead-end: there was no way for you to actually get to
the edit conflict resolution page because we were
hiding the resolve button.

Bug: 69150
Change-Id: Iaccb7d0ec25d8f15398e437d614184433c33e6eb
2014-08-27 01:06:54 +00:00
jenkins-bot d97d57d106 Merge "Categories: Don't suggest empty or old categories" 2014-08-26 20:00:41 +00:00
Translation updater bot e46bff4afc Localisation updates from https://translatewiki.net.
Change-Id: I4d177742d10d421c0ba834b3e1d34ffead0c0062
2014-08-26 21:53:44 +02:00
James D. Forrester 719acdb42f Update VE core submodule to master (a96cb00)
New changes:
c66e7a8 Update oo#compare usages
bbff57b Followup 8c71904: use getter for availableTools
f9587e8 Add myself to AUTHORS.txt
ffc9358 Localisation updates from https://translatewiki.net.
1025f3b Fix JS error in ce.LanguageAnnotation when dir is set but lang isn't
4ad483f Check IME simulations actually fail as expected
aaa991a Followup bbff57b, 8c71904: use getter for availableTools, again

Change-Id: I5bfa1201f38f2b86234535ed97a1c394d9cf8e58
2014-08-26 09:59:48 -07:00
Derk-Jan Hartman a270fc396d Categories: Don't suggest empty or old categories
The categories table holds all categories that exist OR have at one
point existed. This means it also contains a lot of vandalism and
other inappropriate names that happily come up in the suggestions.
This is undesirable. This changes the query to only list categories
with at least 1 entry.

Though technically it can be argued that an empty category with an
existing page might 'exist' and should thus be listed, with this
change they won't be. I don't think that is terribly incorrect to
say that such would be a 'new category', but we could also consider
renaming the label in the suggestion list to say:
'Currently unused category' or something similar.

As far as I can tell there is no way to test for page existance OR
generate a list based on allcategories with one API query.

Bug: 70025
Change-Id: I0e195d3ce26e69d4710d6a505b9da7d1b7678d92
2014-08-26 11:25:54 +02:00
Alex Monk 11fef44a08 Remove delete button from required parameters in template dialog
Bug: 60358
Change-Id: I5d03f466475bfafd4569480431969f5001365eb8
2014-08-26 01:39:51 +01:00
jenkins-bot aa95f70c4e Merge "Switch 'disallowQuotedKeysInObjects' jscs rule on and fix up" 2014-08-25 18:00:07 +00:00
Translation updater bot 1d7962c619 Localisation updates from https://translatewiki.net.
Change-Id: Ic9fc4852d5cd5f33704f539839698e756c4de173
2014-08-23 22:02:15 +02:00
Juliusz Gonera d074da3558 Add myself to AUTHORS.txt
Change-Id: I905218ed86c0c4c6b164685f4203f19deceacd93
2014-08-22 16:40:12 -07:00
jenkins-bot 8462907ae3 Merge "Do not focus CE on mobile when editor opens" 2014-08-22 22:50:59 +00:00
Ed Sanders 9a1e3852fc Update VE core submodule to master (c231b71)
New changes:
c9f1027 Remove broken ve.isMsie() function
6571da1 Fix case on language annotation CSS class
c231b71 Fix case in all annotation classes

Local changes:
Fix case in all annotation classes

Change-Id: Iba2596cde52d8f8be27e0257893ef8ec77798ae8
2014-08-22 14:27:14 -07:00
jenkins-bot 67877be2a2 Merge "Blacklist plain block images from MW paste" 2014-08-22 21:07:17 +00:00
jenkins-bot ccac83f395 Merge "Don't apply a background to language annotations in IE" 2014-08-22 20:57:21 +00:00
James D. Forrester a232147b11 Switch 'disallowQuotedKeysInObjects' jscs rule on and fix up
Change-Id: I75ac4b378ef485feead9d0eff34ed7877b94b5d0
2014-08-22 13:50:48 -07:00
Roan Kattouw c5281a4e4d Don't apply a background to language annotations in IE
Because doing that makes the text disappear if dir="rtl" is also set.

Bonus: explain why we're changing which nodes to set highlight
opacities on for IE.

Change-Id: I061e372b26a7b523fc1f307ad9897b884803fdf4
2014-08-22 13:34:45 -07:00
Ed Sanders 4af79bf3d5 Re-order methods in MWImageNode
So static methods are actally in the section marked 'Static methods',
before non-static methods, per our coding standards.

Change-Id: I17bea17a1409b02f263375c6434be872e4d239ba
2014-08-22 13:33:08 -07:00
Ed Sanders 57cd852543 Blacklist plain block images from MW paste
Same as inline images, only MW images are allowed.

Change-Id: I0272ebb44c044cd6bcdb85cd5e11d3b50530cc73
2014-08-22 21:31:29 +01:00
Juliusz Gonera 7864de472e Do not focus CE on mobile when editor opens
Extract the part of mw.Target#restoreEditSection responsible for moving
cursor to a separate method and move the cursor only on desktop.

Bug: 68832
Change-Id: I4ffc54ced64ce9e52d0cbcffb2fb4d082239098c
2014-08-22 12:37:00 -07:00