Commit graph

7495 commits

Author SHA1 Message Date
Krenair e59b1e7f60 Use promises for confirmation dialog instead of done event
Should be merged at the same time as I70af4f4f
Unbreaks the confirm dialogs (I5f971852)

Change-Id: I7e7a5fcef4e749a3196f675e9f1f8e8bc5c11ca0
2014-05-31 16:25:27 +01:00
Trevor Parscal f65c3c6ef1 [BREAKING CHANGE] Update VE core submodule to master (88fe25f)
Switch to processes for windows (dialogs/inspectors)

This conversion also required the splitting of MWLinkInspector into
MWLinkNodeInspector and MWLinkAnnotationInspector.

New changes:
88fe25f [BREAKING CHANGE] Update OOjs UI to v0.1.0-pre (dd888aba5c)

Change-Id: I662d8985463c9fc881775f70aef87ebeb454a73f
2014-05-30 22:03:45 -07:00
jenkins-bot 4719978a47 Merge "Update VE core submodule to master (418cd67)" 2014-05-31 01:05:52 +00:00
Roan Kattouw d7ca1604d6 Clean up interaction with confirmation dialog
It now only sends a single 'done' event, which we can use .once on

Relies on I4f485d4f in OOjs UI.

New changes:
418cd67 Update OOjs UI to v0.1.0-pre (0f101c6f5d)

Bug: 65571
Change-Id: I19aa65612bf02bed056de292f212d2f5732a8fec
2014-05-30 16:39:07 -07:00
Roan Kattouw e3249a4afa Update VE core submodule to master (418cd67)
New changes:
418cd67 Update OOjs UI to v0.1.0-pre (0f101c6f5d)

Change-Id: I9488f688483af4003a89b10876f1356691d2a1dc
2014-05-30 16:35:59 -07:00
Roan Kattouw 350c99e249 Update VE core submodule to master (0f178b5)
New changes:
636d84e Optionally allow undo while staging
8d75e08 Don't fix selection on document focus if focusedNode is set
42c35dd Fallback options for receiving bad information into Scalable object
3a07dd0 Remove last jQuery.browser uses with temporary ve.isMsie hack
f265c86 Localisation updates from https://translatewiki.net.
6a8c609 Localisation updates from https://translatewiki.net.
0343976 Update OOjs UI to v0.1.0-pre (469d40c88f)
0b684c5 ActionDialog: Allow errors to be jQuery objects

Change-Id: I5ac0b828ed4b7c492cd770b1e980d02e60128740
2014-05-30 16:08:03 -07:00
jenkins-bot 21ab1a9b7e Merge ""Use an existing reference" in the reference dialog should be disabled when there is content" 2014-05-30 22:26:33 +00:00
Ed Sanders 2122ccb654 Cleanup createSurface methods
No need to set in mw.Target as it now exists in core Target.

Add config param to MobileViewTarget override.

Depends on I555935d2 in core.

Change-Id: I72be9098bd9d59272ca3d7a9a64dca4271ef3ee5
2014-05-30 20:36:26 +00:00
Alex Monk 96bcc2dc55 "Use an existing reference" in the reference dialog should be disabled when there is content
Bug: 65689
Change-Id: I55f7af71957634f5c19996be02a51af0288e9e2f
2014-05-30 21:04:51 +01:00
Translation updater bot 5e5eb07969 Localisation updates from https://translatewiki.net.
Change-Id: Ife01323a102264c7d496b3cc73c76dae1a9e29a3
2014-05-30 18:51:07 +00:00
Alex Monk d43db7f12f Trim description when working out whether or not we should disable the info button
So we don't display just a blank box for a single space.

Bug: 65862
Change-Id: Ie0ab305b8ee3cfe86e8f17adaab45c57b4ec49b7
2014-05-30 18:25:58 +00:00
Translation updater bot 50d3af5508 Localisation updates from https://translatewiki.net.
Change-Id: If46f03458426a394cc40e6ad0fb9088442db32d5
2014-05-29 19:39:35 +00:00
jenkins-bot a2d7668a01 Merge "[BrowserTest] updates for new bullets/indent UI" 2014-05-29 17:38:11 +00:00
Cmcmahon 26a5d50b6e [BrowserTest] updates for new bullets/indent UI
DONE: bullets test passes in Firefox and Chrome
DONE: indent/outdent test passes in Firefox and Chrome

TODO: instead of sleep do wait_until for the iframe

Change-Id: Ibcda64dc2457648abf3d5c6bc226b5cc628c0c45
2014-05-29 10:30:14 -07:00
Alex Monk 837eea324e Fix beta warning appearing for some users that it shouldn't.
Check that the user is anonymous before looking at their cookie to decide whether
to show beta warning dialog.
With the existing code, we would see that the preference is false and then check
that they have no cookie. But being logged in should make the cookie existence
be disregarded.

Fixes Ica9e5a92

Bug: 65821
Change-Id: I84e31323930c404222388bb74e4b4ca8d303e05c
2014-05-29 17:54:51 +01:00
James D. Forrester d2896e111d Update VE core submodule to master (610021b)
New changes:
610021b Update OOjs UI to v0.1.0-pre (09b223d279)

Change-Id: I93bafa996b6fd8da1b140833a869074a6402f572
2014-05-29 08:44:43 -07:00
jenkins-bot 9e522c638b Merge "Make images look better, account for e82629895b38 in MW core" 2014-05-29 01:40:33 +00:00
Roan Kattouw 9e9a671fc1 Make images look better, account for e82629895b38 in MW core
Prevent images from getting double borders due to slugs,
and prevent extraneous margins from piling up in captions.

Also add the ve-ce-mwBlockImageNode class which shockingly
wasn't being set (only ve-ce-mwBlockImageNode-TYPE was set).

Change-Id: I86b95aa0c0def92a9790b7cdb4b05837fb8f65e2
2014-05-28 18:35:07 -07:00
jenkins-bot 21b4249360 Merge "Switch action=opensearch call to list=prefixsearch where appropriate" 2014-05-29 00:38:20 +00:00
jenkins-bot de0091fec5 Merge "Allow extensions to add extra meta item checkboxes to the page settings dialog" 2014-05-29 00:33:19 +00:00
Krenair d12a0d73d7 Switch action=opensearch call to list=prefixsearch where appropriate
Bug: 63555
Change-Id: If39e6f9c3a8445d506f14797bcec46714fb3e0f9
2014-05-29 01:15:03 +01:00
jenkins-bot 1f4a1c9cf2 Merge "Add a hook so GuidedTour, etc. can know when save button is clickable" 2014-05-29 00:09:20 +00:00
jenkins-bot 9da25b36fd Merge "Suggest categories that exist but don't necessarily have pages" 2014-05-29 00:06:27 +00:00
jenkins-bot 535d3d6f0d Merge "Remove gallery tool from toolbar" 2014-05-28 23:42:52 +00:00
Roan Kattouw 27a400ee62 Remove gallery tool from toolbar
It confuses people looking for the media insertion tool. Galleries
that are already on the page will still be inspectable.

Change-Id: I90609ab7f19fb513c17d9253db30e7ddeaa18436
2014-05-28 16:40:12 -07:00
James D. Forrester 192a32ec84 Update VE core submodule to master (2490eb7)
New changes:
e806037 Add createSurface to base target
c15644c Convert toolbar structure group from bar to list
1d5929e Update OOjs UI to v0.1.0-pre (7b283a9dcc)
c2d6e51 Localisation updates from https://translatewiki.net.

Change-Id: Ife6f4fd24b845f12310352f01eaa474260aedfc0
2014-05-28 16:30:28 -07:00
jenkins-bot a7bf8b6a7f Merge "Convert toolbar structure group from bar to list" 2014-05-28 23:06:36 +00:00
jenkins-bot c9a56f17a0 Merge "Another default alignment fix to MWImageModel" 2014-05-28 22:12:01 +00:00
Moriel Schottlender f9df17c052 Another default alignment fix to MWImageModel
This time in the installment: Allow the model to predict the type
and default alignment based on parameters rather than just the
current status. This is important for initializing images, especially
inline images whose 'align' attribute is null or undefined, but must
be examined for default alignment.

Also changed:
* Make sure that model operations change each other, rather than
  let the editor change 'unrelated' model parameters.
* Use selectItem rather than chooseItem to avoid emiting the 'choose'
  event on edit dialog initialization.

Bug: 65564
Change-Id: I8c23fc53e7738d59565294d8b98fe7351bebbc67
2014-05-28 18:05:00 -04:00
jenkins-bot c0f0f276af Merge "Decode URL encoding in resource attriute for images" 2014-05-28 21:04:41 +00:00
Translation updater bot 991c1cf3e6 Localisation updates from https://translatewiki.net.
Change-Id: I4013a38fb8a7d31fa70e594c31aa7689569ca69b
2014-05-28 19:35:48 +00:00
Roan Kattouw 7d86729858 Decode URL encoding in resource attriute for images
In getFilename(), decode URL encoding and replace the search
for 'File:' with a more standard ./ stripping regex.

The ./ regex came from generateContents) in the CE class;
made that code use getFilename() instead.

Also apply decodeURIComponent() to the result; but protect against
exceptions because it's a useless piece of garbage.

Bug: 65611
Change-Id: I7e81a8dc26d1c636c6571d96f43a394a53490587
2014-05-28 12:21:06 -07:00
Krenair 20a1860f49 Suggest categories that exist but don't necessarily have pages
Instead of suggesting categories that have pages but don't necessarily exist.

Replaces part of If39e6f9c

Bug: 49044
Change-Id: I5c53669776c4c5bbbfe7b753747f3f677a752d91
2014-05-28 17:37:01 +01:00
Moriel Schottlender 186238e90d Make sure <figure> has proper dimensions
This commit brings back the sizing of the <figure> in MWBlockImageNode.
The figure must have proper size in CE otherwise 'center' and 'none'
alignments don't work, and the <figure> stretches across the entire
width of the screen.

Bug: 65836
Change-Id: Iefed466fce87f265fbd08908f1171867f9d1e1fe
2014-05-27 21:44:58 -04:00
jenkins-bot 9a8720bf90 Merge "Update .docs/eg-iframe.html to sync with new changes" 2014-05-27 23:21:50 +00:00
kaldari d7bf3fabbe Adding header to top of citation pop-up list in mobile view
Per https://trello.com/c/xCo6uLAZ/9-5-references-dropdown-from-toolbar-styling

Also adding down-arrow indicator next to icon in handler (per Kaity)

Change-Id: I637891232f40ad217b4d3bd62bbecc502bf4cefb
Dependency: Id54100c55b05bdae5858ca72e4fd4418ceff0454
2014-05-27 23:16:25 +00:00
James D. Forrester 2c89665070 Update .docs/eg-iframe.html to sync with new changes
Change-Id: Ie267927f695cf83958933545c78195a2b0accf2e
2014-05-27 16:14:04 -07:00
jenkins-bot f80e202d95 Merge "Update VE core submodule to master (f340daa)" 2014-05-27 22:30:40 +00:00
James D. Forrester 4c0c47e7af Update VE core submodule to master (f340daa)
New changes:
4572291 Truncate undo stack before applying staged changes
79e7876 Move DesktopContext.css into desktop module
0c6f68c Localisation updates from https://translatewiki.net.
366774d Localisation updates from https://translatewiki.net.
f756c91 Localisation updates from https://translatewiki.net.

Change-Id: I255e628fc48461b636ae8767b5212910caf48365
2014-05-27 22:24:02 +00:00
James D. Forrester e2fab2f1eb Dump raster support (unuseful) and assert SVG works before loading
Depends on Idb26804576 in core.

Change-Id: I17481b2d52ab2c33c26ff935b0fd58deb4aa207b
2014-05-27 15:22:26 -07:00
Kaity Hammerstein 55690fd69e New icons for cite, references
Change-Id: I92761fa5844516323a35711cfae8d9d1852f72e8
2014-05-27 14:14:38 -07:00
Translation updater bot b23dda0b0c Localisation updates from https://translatewiki.net.
Change-Id: I89ab2a8efb350dd7db33d2bb2b2a3e898d0b7882
2014-05-27 20:35:45 +00:00
Translation updater bot 3733e8b317 Localisation updates from https://translatewiki.net.
Change-Id: I791618b587f6d1c43b7ce5b7f6313f7f7278b88f
2014-05-26 20:13:42 +00:00
Translation updater bot cc4134975d Localisation updates from https://translatewiki.net.
Change-Id: Ie3f76854a7f58ce787113edb5c543b8563334648
2014-05-25 19:38:30 +00:00
Matthew Flaschen d62c12ce7b Add a hook so GuidedTour, etc. can know when save button is clickable
Change-Id: I9b8ef8a193810c5e7275a61ba1a874d378c8b030
2014-05-25 15:13:51 -04:00
Translation updater bot 131e8988b5 Localisation updates from https://translatewiki.net.
Change-Id: I8402d9f9c38c1e378818b9065d4ac6c43e0cb643
2014-05-24 15:24:14 +00:00
jenkins-bot 29ca9c6a59 Merge "Remove DesktopContext.css/js from core, leave in desktop" 2014-05-24 04:06:11 +00:00
James D. Forrester 7c7ad693c3 Update VE core submodule to master (d2c88c9)
New changes:
2350a59 Register target globally
163a129 Remove IE check (and possible compatibility) from beforepaste/paste event switch

Change-Id: I529a4c39a34854917da5f18663a7979cb6776517
2014-05-23 20:37:11 -07:00
jenkins-bot 5d27d1d90c Merge "Update eg-iframe.html" 2014-05-24 03:34:28 +00:00
jenkins-bot afa3264e0b Merge "Fix default alignment in MWImageModel" 2014-05-24 03:33:03 +00:00