Commit graph

11569 commits

Author SHA1 Message Date
Alex Monk 89ed0ccbf5 Only style originalContent when VE is active
Otherwise there is a white block above the resulting content after save

Change-Id: If9239556ed5b1038aa86e4ba161da2abfd9e6bf2
2016-04-15 02:26:44 +01:00
Translation updater bot 3a05797ea5 Localisation updates from https://translatewiki.net.
Change-Id: I3f0b46e53c0dd708d744452925e274a3ad024445
2016-04-14 22:38:43 +02:00
Ed Sanders 4d40a9df80 EducationPopup: Give pulsating blue dot an initial opacity of 0
This makes it degrade to a small dot instead of a huge dot in
browsers which don't support animation (IE9).

Change-Id: Ia457b3caf35ff0ffe7287b2b1e395860d5dbd7d0
2016-04-14 16:22:04 +01:00
Ed Sanders 011ff4e133 Replace transitionend event with setTimeout
transitionend events seem like a neater solution, but we should
migrate all of our code at once, and provide a polyfill for
browsers which don't support it (IE9).

Change-Id: If6ae030856f8e69cc8bb26f21bfed30d5d22775c
2016-04-14 16:21:41 +01:00
Alex Monk f3c5e2f410 Set mw.libs.ve.EditingTabDialog.static.message instead of passing it to setup data
Change-Id: I2bfb79e258253e00c9f856bbbb3c4efae55a128c
2016-04-13 22:46:14 +01:00
Alex Monk 47cfc03d72 Close VE SET dialog when we deactivate
You can trigger deactivation by browsing back.

Bug: T132494
Change-Id: I8f66e22a745d84a3ca4b144c389c3ae654974789
2016-04-13 22:41:27 +01:00
Translation updater bot a6974c0c81 Localisation updates from https://translatewiki.net.
Change-Id: Ieaf3137f26d599edcc19c42af321fded1e6d135e
2016-04-13 22:22:36 +02:00
Translation updater bot 716a7d64c8 Localisation updates from https://translatewiki.net.
Change-Id: I4409a473d8217eaf7c1fa93505422709f1172b6c
2016-04-12 22:59:48 +02:00
jenkins-bot b779743208 Merge "[BrowserTest] Fix i18n files lookup" 2016-04-12 00:50:13 +00:00
Alex Monk 71990b4c44 Check wpSection before converting textbox contents for use in VE
Bug: T132309
Change-Id: I93f7706257f1f8ea59b7447f198a34439b17194d
2016-04-11 23:35:11 +01:00
Translation updater bot 5508609124 Localisation updates from https://translatewiki.net.
Change-Id: I29d8e85f5a87b73f8ee011e35f174078dbe60259
2016-04-11 22:40:29 +02:00
jenkins-bot fb592f1fe0 Merge "Update VE core submodule to master (f8be8c3)" 2016-04-11 14:24:22 +00:00
jenkins-bot 5dc1257507 Merge "More minor/watch checkbox state computation server-side" 2016-04-11 14:18:56 +00:00
Ed Sanders f91efee467 Update VE core submodule to master (f8be8c3)
New changes:
0e3e63a Rename ve-ce-sectionNode-focused to active
0010e49 Update OOjs UI to v0.16.5
8a50357 Localisation updates from https://translatewiki.net.
a731e0e Implement ve.dm.Selection#getCoveringRange
145c754 ce.Surface: Prevent selection from spanning an active node
e430224 Move toolbar positioning logic to PositionedTargetToolbar
c4bc52c demo: Put border around whole target

Local changes:
* Adjust to cope with the new positioned toolbar class

Change-Id: I47053af8a9efb0f4c267543616a5d6c80ae1534f
2016-04-11 07:06:13 -07:00
jenkins-bot 9b9390585d Merge "Adjust DOM and CSS so UI surface runs from top to bottom of page" 2016-04-11 14:03:29 +00:00
jenkins-bot c2bb40285b Merge "Add ?redirect=false to VE's RB /page/html/ requests" 2016-04-11 13:44:21 +00:00
Ed Sanders f342dc01c3 Adjust DOM and CSS so UI surface runs from top to bottom of page
Place things like the page title and redirect link inside a new
container $originalContent, which is appended to the surface
when ready. Replace margins with padding in various places.

This will allow us to surface-height-matching sidebar for dialogs.

Change-Id: I60d80fb303bdaf93e9d121f62d534ee3a3056e59
2016-04-11 13:18:36 +01:00
Translation updater bot b8f387afa7 Localisation updates from https://translatewiki.net.
Change-Id: Idece17af3a2cff864e7085f34b1b91b03a1d424e
2016-04-10 20:10:39 +02:00
Alex Monk 149dab8fc5 Add ?redirect=false to VE's RB /page/html/ requests
Untested.

Bug: T130757
Change-Id: I27570d3212bd41bf7da93608302dae04c364783f
2016-04-09 03:34:34 +01:00
Roan Kattouw 12eb41acff More minor/watch checkbox state computation server-side
Following through on my threat from 72b0d2a19c (November 2013).

Change-Id: I0daeef2a0373bbdb06627053e9d726d6fc20a3f6
2016-04-08 18:02:01 -07:00
jenkins-bot c253bfbd5a Merge "Use widgets for wiki-page-name, wiki-user-name, wiki-template-name, boolean, URL and line template fields" 2016-04-08 16:39:50 +00:00
jenkins-bot c0e459aa75 Merge "Update VE core submodule to master (5109934)" 2016-04-07 22:22:50 +00:00
Translation updater bot a7b2938f0e Localisation updates from https://translatewiki.net.
Change-Id: I67966efc3392f3d2133c0442aad699406bba0c00
2016-04-07 23:05:28 +02:00
Translation updater bot f9487af27a Localisation updates from https://translatewiki.net.
Change-Id: Iaded10f066d638b38240ff8572e4abb326d42302
2016-04-06 23:16:05 +02:00
Alex Monk 978224f2ec Use widgets for wiki-page-name, wiki-user-name, wiki-template-name, boolean, URL and line template fields
* Use TitleInputWidget for wiki-page-name and wiki-template-name parameters
* Use UserInputWidget for wiki-user-name parameters
* Use a custom hacky CheckboxInputWidget child class for boolean parameters
* Borrow some ve.ui.MWExternalLinkAnnotationWidget.prototype.createInputWidget code for url parameters
* Use a TextInputWidget with multiline disabled for line parameters

Not dealt with in this commit, so fallback to existing behaviour:
* string
* number
* unknown
* content
* unbalanced-wikitext
* date
* wiki-file-name

Bug: T55613
Bug: T124734
Bug: T124736
Change-Id: If04944d64303d959e8dd605e75a175895932b788
Depends-On: I87699a93ca1b34c6d248456fcc060f584623d158
Depends-On: I5e97604f0fc24176d5e89899bf0505dc442a1a7e
2016-04-06 22:07:19 +01:00
Translation updater bot 5f58ba4bf5 Localisation updates from https://translatewiki.net.
Change-Id: I21bc9c165d900adb4223887846c898e702ac40df
2016-04-05 23:01:17 +02:00
James D. Forrester 4479c56b5a Update VE core submodule to master (5109934)
New changes:
14a02d3 Add article/section nodes for isolated editing sections
fa1b64a SectionNode: Don't set self as active node if a descendent is active
90f05cc Sections: Make sections & articles un-unwrappable
9518d4b SurfaceFragment#delete: Check removal is not a no-op
5109934 Section nodes: Use opacity to indicate active-ness

Change-Id: I3e89e8fa2db130f21e7d58231043b775ec51dc18
2016-04-05 19:03:06 +03:00
jenkins-bot 597a095a64 Merge "Ensure veswitched is not set when we set wteswitched in the URI" 2016-04-05 15:51:33 +00:00
jenkins-bot f9c95cd820 Merge "Fix up mw.libs.ve.EditingTabDialog.prototype.getActionProcess" 2016-04-05 15:41:28 +00:00
Alex Monk 373a19f1cc Ensure veswitched is not set when we set wteswitched in the URI
veswitched and wteswitched together cannot result in any sane behaviour.

To reproduce:
* Open VE (while having multi-tab pref?), switch into WTE
* Make a change
* Switch into VE

Change-Id: I90e19169e3fab60ab876c8e4d349801309db262f
2016-04-05 01:27:37 +01:00
Alex Monk f67b578c3f Fix up mw.libs.ve.EditingTabDialog.prototype.getActionProcess
How did this ever work?

Ensure action is passed through and not just undefined, wait for change to go
through before refreshing.

Bug: T131818
Change-Id: I83b5695906044299d338e62e6c980c596d291765
2016-04-04 23:57:46 +01:00
Translation updater bot 2ff6fd5b9b Localisation updates from https://translatewiki.net.
Change-Id: I39ddf914192ccdd0d41708303eb9fb153329c1ba
2016-04-04 22:13:20 +02:00
Antoine Musso 4a97e9585f [BrowserTest] Fix i18n files lookup
The visual_editor_page used relative paths expecting the current
directory to be modules/ve-mw/tests/browser. Use absolute paths instead.

Change-Id: I8b1c4eddc2085ee80380f288bceb14c6feee0a60
2016-04-04 11:52:36 +02:00
Translation updater bot 286f489a6d Localisation updates from https://translatewiki.net.
Change-Id: Iaef135e32858ff9562fba4a1fe56558fc13ba893
2016-04-03 23:25:01 +02:00
jenkins-bot 12aefcc213 Merge "After saving and setting HTML, set single-editor edit section handlers again" 2016-04-02 18:32:46 +00:00
Roan Kattouw 8e69dfa3b8 ArticleTarget: Correct comment explaining where setAssumeExistence( false ); is called
Change-Id: Ib883ea1fe57fe6cb3e182965a18eb3fb50246178
2016-04-02 20:28:44 +03:00
jenkins-bot 65ee77da50 Merge "MWExternalLinkAnnotation: Only match plain external <a>s with hrefs" 2016-04-02 16:05:36 +00:00
Ed Sanders 6fad9ecdee MWExternalLinkAnnotation: Only match plain external <a>s with hrefs
We now accept non-Parsoid generated external links from paste,
so make sure they have href attributes otherwise they aren't
really external links and will throw exceptions later on.

Bug: T131430
Change-Id: Ifb565b1ce30cfe80ae72b17f6a9551ea40b36453
2016-04-02 18:51:56 +03:00
James D. Forrester 4b8570dd38 Update VE core submodule to master (c2561bb)
New changes:
055a40a LinearArrowKeyDownHandler: more tests
429fe72 Localisation updates from https://translatewiki.net.
94f9068 Localisation updates from https://translatewiki.net.
b82cb77 Allow toDataElement to return an empty array
039ea22 Follow-up 94f9068: Fix build for added language 'khw'
ea5f51c build: Bump various devDependencies to latest
64950f5 Factor out undeletability from internal-ness
2f0a034 Document#writeElement: Avoid double-space in error message
4552f5c Table editing: Refactor active table node to be more generic
7670ed8 DSVFileTransferHandler: Use factories to create the right type of table
feefeda DSVFileTransferHandler: Skip empty terminal lines in input files

Change-Id: Ifa5487c7d79553634e3e1a810a43dcbf462526eb
2016-04-02 13:53:19 +03:00
jenkins-bot aa5f992159 Merge "MWExtensionNode#generateContents: Fix renderEmpty logic" 2016-04-02 09:31:07 +00:00
Tpt 8ccbb58ca6 MWExtensionNode#generateContents: Fix renderEmpty logic
This static attribute is not used anywhere so it should be safe

Change-Id: I633c521859b59614835344a4644560ac933c6028
2016-04-02 07:58:33 +00:00
Alex Monk 7788aece55 After saving and setting HTML, set single-editor edit section handlers again
Change-Id: I6e0962271e7e1460abbe82864b47fddc5bd7f235
2016-04-02 09:53:25 +03:00
Translation updater bot 6b4dcefcf2 Localisation updates from https://translatewiki.net.
Change-Id: I520bd24cc795d85ab66e2d623d77b7141d0188ab
2016-04-01 22:30:49 +02:00
jenkins-bot 743b53c4e3 Merge "Hooks#onAuthPluginAutoCreate: Only act if not default" 2016-04-01 14:20:23 +00:00
James D. Forrester e9af948c3e Hooks#onAuthPluginAutoCreate: Only act if not default
Change-Id: If52c23b523953aabf52ef3e889a77b422a149c63
2016-04-01 14:29:26 +03:00
Roan Kattouw f6ba399137 Fix asynchronous loading of MWAlienExtensionNode renderings
ve.dm.MWExtensionNode#toDataElement calls storeGeneratedContents()
which prepopulates the cache, but because it was being called with
the wrong context, this.name was null and so the key we were storing
it under was different from the key we'd later be looking for.

Fixed by ensuring ve.dm.MWAlienExtensionNode#toDataElement preserves
context when calling its parent. Our static context hacks are tricky.

Change-Id: If859d861453067d7656a33a1767f6efc7bd9d323
2016-04-01 12:50:13 +03:00
Translation updater bot 1ad77ddf91 Localisation updates from https://translatewiki.net.
Change-Id: Ic552bb2a2a87252033cc9f6ab57ff9545f6686b5
2016-03-31 22:47:29 +02:00
jenkins-bot 2449ce203d Merge "Use veaction=edit in URL instead of action=edit when we're using multiple tabs" 2016-03-31 15:42:40 +00:00
jenkins-bot 98cf88a205 Merge "Set User-Agent in server-side VRS requests to RESTBase/Parsoid" 2016-03-31 08:39:00 +00:00
Translation updater bot db5741d061 Localisation updates from https://translatewiki.net.
Change-Id: Ib60a84f5f2dd85ed5b2f9dd89b8eb64402e8a2d6
2016-03-30 22:43:22 +02:00