Commit graph

7668 commits

Author SHA1 Message Date
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
Moriel Schottlender 7a6f59920d Fix default alignment in MWImageModel
Make default alignment a computed value, and make sure the GUI listens
to 'choose' instead of 'select' events for SelectWidgets so to prevent
recursive calls and make sure the GUI is updated properly.

Also added a default alignment check on type change so the user can
visually have an indication that the new image will have a different
alignment. The user can then change the value manually.

Bug: 65564
Bug: 65596
Bug: 62852
Bug: 65617

Change-Id: I55e16775d18e0a4bf7f1fa73bbb3aa5e0aa51a79
2014-05-24 03:22:52 +00:00
James D. Forrester 1d92138f99 Update eg-iframe.html
Change-Id: I41a6e89339b586690d04c4704d2427e89d2c8605
2014-05-23 20:20:49 -07:00
James D. Forrester 0d4aaf5b4c Move Safari 5.x to greylist because dialogs aren't working well
Bug: 65656
Change-Id: Idb1236d199e323381bcd69a50b34d8ba05ecc145
2014-05-23 20:05:01 -07:00
jenkins-bot f9aecc4b60 Merge "Fix dependencies for eg-iframe" 2014-05-23 23:59:12 +00:00
Ed Sanders 7330b38ebf Fix dependencies for eg-iframe
Requires standalone to actually run, as in core.

Change-Id: I408981eb1ba12f0a447d0582b88f6b67d0e455cb
2014-05-23 16:56:53 -07:00
jenkins-bot fb46a98886 Merge "Remove media item styling moved to MW-core in I400336c12d." 2014-05-23 23:39:57 +00:00
jenkins-bot 40315e5bf6 Merge "Preserve veaction, vesection on special redirects to wiki pages" 2014-05-23 23:38:56 +00:00
jenkins-bot c86b9f7046 Merge "Switch from Parsoid extension's styles to MediaWiki core's" 2014-05-23 23:36:21 +00:00
jenkins-bot a58db4629b Merge "Detect that a category is hidden when following a redirect" 2014-05-23 23:29:27 +00:00
jenkins-bot b34249a563 Merge "Follow redirects when looking up template data" 2014-05-23 23:13:21 +00:00
Alex Monk 9182fc1958 Follow redirects when looking up template data
Relies on If6fb5856 to do anything useful, but degrades gracefully to current
behaviour.

Bug: 50964
Change-Id: Ia35c2f433a1a604d7794f367fd10dbccac102b89
2014-05-23 19:57:22 +01:00
Roan Kattouw 40fd403c0c Update VE core submodule to master (a42143c)
New changes:
3ecd488 Add check icon for Apply button in ActionDialog
3dccb7d .unbind() -> .off()

Local change:
Add new CSS file to VisualEditor.php.

Change-Id: I443f9f4514ae2a61c688549107e7f2e5de700b62
2014-05-23 18:42:02 +00:00
James D. Forrester 47e19a9873 Convert toolbar structure group from bar to list
Aligns with I84a4d948ae in stand-alone.

Change-Id: I533355a20bb329b91d6550bde4afa18180b38f59
2014-05-22 17:47:29 -07:00
jenkins-bot 4c36d6e9c6 Merge "Make MWGalleryInspector wider" 2014-05-22 23:02:32 +00:00
James D. Forrester 805dbdd5bb Update VE core submodule to master (1c1eb3a)
New changes:
7368ea3 Localisation updates from https://translatewiki.net.
712be31 Followup 682b4d0b88: bring this.isSetup back
78fd10e Document that SurfaceFragment#getSelectedNode doesn't require selection

Change-Id: I8df73bfc30b5bfeed88d5e96236991ce8bbae72d
2014-05-22 14:31:38 -07:00
Translation updater bot 55fb76438e Localisation updates from https://translatewiki.net.
Change-Id: I51844559766397b05d727d06f3f7ac6c09d274f0
2014-05-22 20:04:39 +00:00
Moriel Schottlender 963e133851 Remove media item styling moved to MW-core in I400336c12d.
Change-Id: I348e55ddea94f3b67f647c66ba53f7384d683584
2014-05-22 12:34:00 -07:00
Ed Sanders d10f27e80a Make MWGalleryInspector wider
Galleries usually have very long lines of text so make the
inspector big.

Change-Id: I69f294af9603a271b73ac1d39166fe4b492290f0
2014-05-22 18:52:27 +01:00
Ed Sanders bafad7ea1e Remove DesktopContext.css/js from core, leave in desktop
Change-Id: I6f5e5a01a9feba593567288f5237a773fa02453e
2014-05-22 18:23:52 +01:00
Matthew Flaschen a50e5c6fd6 Preserve veaction, vesection on special redirects to wiki pages
Bug: 50877
Change-Id: I61fcc9109105ea25f30f89ec18d8fa0d13dcde82
2014-05-22 13:05:23 -04:00
Krenair 060fcabe3b Detect that a category is hidden when following a redirect
At the moment, if you have a category on a page, and the category redirects
to another category which is hidden, VE does not mark it as hidden when
loading the page.

Change-Id: I9303838d36fbc1e2c0ed16b8bb0020bf52a6c211
2014-05-22 17:44:05 +01:00
jenkins-bot e288385569 Merge "Don't add |link= when converting block images to inline" 2014-05-22 00:44:23 +00:00
Juliusz Gonera 44db741a4b Hide unsupported UI elements in references on mobile
Also tweak styles for the supported ones slightly.

Change-Id: Ia4f0f3627d062698c085cd60f72928ef16532d20
2014-05-21 16:18:08 -07:00
James D. Forrester 1294791b40 Re-sync .docs/eg-iframe.html
Change-Id: I50d2bee652d2a1c2b61d34eefaf61817e4c60bce
2014-05-21 16:17:15 -07:00
Roan Kattouw c6fa82f0fb Don't add |link= when converting block images to inline
Change-Id: I71d996df4839bb507b970c55f97d5543665f4f81
2014-05-21 16:05:27 -07:00
Roan Kattouw 6c1c01c657 Update VE core submodule to master (b0a1e1a)
New changes:
36762de Localisation updates from https://translatewiki.net.
d040f9e Add SVG to image demo
c4523fb Always cover inserted content in SurfaceFragment#insertContent

Change-Id: Icef709a904255b2453d6a2f3ed081b1b12bdb042
2014-05-21 15:52:58 -07:00
jenkins-bot 1606452037 Merge "Update VE core submodule to master (fa14d31)" 2014-05-21 22:04:56 +00:00