Commit graph

4954 commits

Author SHA1 Message Date
Translation updater bot 567bc298c5 Localisation updates from https://translatewiki.net.
Change-Id: I77aca2aafa920a83a17af3e67e686f591c38c93a
2016-08-11 23:59:28 +02:00
Translation updater bot 8e2eea4ba9 Localisation updates from https://translatewiki.net.
Change-Id: I89b98e1377eb41691c1197857994b4410a7b70c7
2016-08-10 22:40:32 +02:00
Translation updater bot 1bb72c1dba Localisation updates from https://translatewiki.net.
Change-Id: Icc1218a5ad574ba676969cf3f4618935daac1d42
2016-08-09 22:34:08 +02:00
jenkins-bot 4cc08e64ba Merge "Gemfile: Bump mediawiki_api from 1.7.1 to 1.7.2" 2016-08-09 15:48:41 +00:00
jenkins-bot 5d2a08ac11 Merge "Take link fragments into account" 2016-08-08 23:26:04 +00:00
jenkins-bot 1fe827197d Merge "Add titles to category input menu's items" 2016-08-08 21:56:43 +00:00
Translation updater bot dfef8c3865 Localisation updates from https://translatewiki.net.
Change-Id: I05610d6618a6f7c30b3097365df88f6643784f28
2016-08-08 22:37:27 +02:00
Alex Monk 071291d624 Add titles to category input menu's items
To match where they point to.

Bug: T139189
Change-Id: I46454cc9cd90920dc5e445200598a4706a8639c9
2016-08-08 21:09:36 +01:00
James D. Forrester cad4066bc9 Gemfile: Bump mediawiki_api from 1.7.1 to 1.7.2
Bug: T129483
Change-Id: Ief831d41df9352a824f4bd7a2a030cc4681950a2
2016-08-08 10:54:21 -07:00
Translation updater bot ffe086695f Localisation updates from https://translatewiki.net.
Change-Id: If723d65fed4f0c848c249edab18b41bf35320ee0
2016-08-07 22:46:02 +02:00
Alex Monk 818c6e4928 Take link fragments into account
TODO: Do we need to do anything special here to handle multiple hash symbols in a URL?

Bug: T112898
Change-Id: I4773cb04ae2533e8125bc55d9ebb606d63b3bf48
2016-08-06 01:20:24 +01:00
jenkins-bot cf4c2d41b3 Merge "Rewrite TOCWidget based on Linker::generateTOC" 2016-08-05 22:18:22 +00:00
jenkins-bot f908b7cad9 Merge "Make ArticleTarget#goToHeading work at all times" 2016-08-05 22:16:15 +00:00
jenkins-bot c813e5e5a2 Merge "Fix check for non-template-namespace transclusions" 2016-08-05 21:51:30 +00:00
jenkins-bot 89a529edc1 Merge "Fetch default options for gallery dialog" 2016-08-05 21:20:00 +00:00
Ed Sanders bb7b38575f Rewrite TOCWidget based on Linker::generateTOC
Use the new node cache to find headings.

Change-Id: I5eb75c5db5ca466fd6f16a57c693c2a4458cff7c
2016-08-05 14:11:15 -07:00
Thalia d156af59aa Fetch default options for gallery dialog
Fetch default options for mode, image heights and image widths
rather than hard-coding them.

Bug: T139632
Change-Id: I1adc7987fdeb1258ee87ce46acbab469ea18116e
2016-08-05 14:08:20 -07:00
Ed Sanders 3970288c8c Make ArticleTarget#goToHeading work at all times
Was previously written to work on initialise when the surface
isn't focused. If the surface is focused, run immediately.

Change-Id: Ie7accd63a4ca3e18448914d34609fe0418f15b4e
2016-08-05 14:00:41 -07:00
jenkins-bot 557ffff7ee Merge "Update VE core submodule to master (4408c13)" 2016-08-05 20:50:16 +00:00
Translation updater bot 94f32072e5 Localisation updates from https://translatewiki.net.
Change-Id: I4bcbfc42151afa8f7fc865c802ff5cf4783a67ec
2016-08-05 22:35:16 +02:00
Ed Sanders 34ff174b85 Update VE core submodule to master (4408c13)
New changes:
e7cb202 Mark context wrappers as wrappers
20b75af Localisation updates from https://translatewiki.net.
a4dde9f Annotate pasted external text
8148301 Always preserve leading whitespace when converting for clipboard
82a35b7 TransactionProcessor: Apply annotations to ranges at the highest uniform offset
21fc1eb Restore previous selection when annotation inspector is dismissed
358181c Preserve prior valid DOM selections in showModelSelection
a0f7dba build: Bump various devDependencies to latest
0ae0f7e Follow-up Iabec6a6: Fix typo in mousemove selection update code
d69a4df Provide tools to make text bigger or smaller

Local changes for big/small tools

Change-Id: If418a1a47276cc1e1530c4a3ad6784136d8d14f8
2016-08-05 11:54:52 -07:00
jenkins-bot dbf3cbb264 Merge "Make image list keyboard accessible in gallery dialog" 2016-08-05 17:07:51 +00:00
Alex Monk 8855ebf586 Fix check for non-template-namespace transclusions
These are not just titles beginning with ':'

Change-Id: I9d7063c221561a0e582deb6944eaab6d9ab4e3f7
2016-08-05 03:25:31 +01:00
Thalia 7d4864729b Make image list keyboard accessible in gallery dialog
Bug: T140874
Change-Id: I0f00f1ddb397fb8f543a04d62b94fc5db32180f6
2016-08-04 16:34:12 -07:00
Timo Tijhof c2897b5a92 mw.ArticleTarget: Fix FancyCaptcha reload button
Follows-up 843620632a in ConfirmEdit which now expects a specific class
on one of the image parent elements.

Without this the refresh link is broken as fancyCapatcha.js is
unable to find the image otherwise.

Change-Id: Iad7c8e8c77f58092ca4dbb5cbb3527cacff10f03
2016-08-04 15:40:41 -07:00
Translation updater bot 35f6c7d5da Localisation updates from https://translatewiki.net.
Change-Id: Iaf26584da2b9c63e071eb811bda5f3c0bbfc15fb
2016-08-04 23:31:28 +02:00
jenkins-bot aac64e6068 Merge "Use .textSelection( 'getContents' ) instead of .val() to get the value of #wpTextbox1" 2016-08-04 16:26:39 +00:00
Translation updater bot 31004d8e3d Localisation updates from https://translatewiki.net.
Change-Id: Ia724279eced3f0df76cbbafb1cd4a908098e6f24
2016-08-03 22:41:51 +02:00
Ed Sanders 4ae7bc6a31 Show name of template for invisible templates
Soft dependency on Id842389d in core.

Bug: T141861
Change-Id: I24f100dde387549a735ebd93e1c9a21f59f52170
2016-08-03 18:52:20 +00:00
Translation updater bot 530d911dd5 Localisation updates from https://translatewiki.net.
Change-Id: I17eb6510ad35f8e60f892b10b4430432601b08ec
2016-08-02 22:47:12 +02:00
Translation updater bot a27b270255 Localisation updates from https://translatewiki.net.
Change-Id: I7df748d430e3d52796e3af6677bf7e8060375df1
2016-08-01 22:37:52 +02:00
jenkins-bot af13aae426 Merge "Fix z-index issue on floating toolbar dialog" 2016-08-01 16:42:16 +00:00
Ed Sanders 8d17509031 Blacklist <time> annotation pasting in MW targets
Change-Id: Idef20f604023efa767c7510ed768c6f80e472559
2016-08-01 15:53:56 +01:00
Alex Monk 7f39d4e75d Use .textSelection( 'getContents' ) instead of .val() to get the value of #wpTextbox1
To allow gadgets like wikEd to use textSelection to return the latest value.

Bug: T135747
Change-Id: Ie353cf547dea6c100c5f01ab56c9b415be1ffdb8
2016-07-31 21:58:51 +01:00
Translation updater bot 84503e0a81 Localisation updates from https://translatewiki.net.
Change-Id: Ie71b6de35192c13339a0dec1aaa2a63d7cb753f4
2016-07-31 22:27:57 +02:00
Translation updater bot 981e878b5d Localisation updates from https://translatewiki.net.
Change-Id: If757b58ee8fff6962e1e5fc3fe338107103fbc95
2016-07-30 22:33:35 +02:00
David Lynch 53ad07ed72 MWLinkAnnotationInspector: change where auto switch to external occurs
OnInternalLinkChange happened post-validation, and received an already title-
normalized version of the href. Thus `file://` would become `:File://`. As
such, hook up to the raw internal link input change event, and judge what the
user actually entered.

Bug: T138956
Change-Id: I0f9f3de3b7bf6e5430e55fa69626522b0c74296a
2016-07-28 11:00:36 -05:00
jenkins-bot 11695a8528 Merge "MWLinkAnnotationInspector: switch to external tab on any schema" 2016-07-28 03:35:18 +00:00
David Lynch a95e6cab08 MWLinkAnnotationInspector: switch to external tab on any schema
Currently the switch only happens if it's a valid schema. Instead, switch if
any schema at all is detected, so we can tell the user it's invalid. If they
really meant to link to an internal wiki-page that just happens to start with
a "schema://", they can switch back to the internal tab to force it.

Bug: T138956
Change-Id: Icfd74157fd8439920668a417661265ddd52c9a21
2016-07-27 17:10:52 -05:00
Translation updater bot 2871ef41bc Localisation updates from https://translatewiki.net.
Change-Id: I73b1a6f72561397b8cacf798b7b877f09ba0bfb4
2016-07-27 22:40:42 +02:00
Translation updater bot e7e1ce91e9 Localisation updates from https://translatewiki.net.
Change-Id: Ib0e0dc671cdb6ada07657429ebcac1fa31a321b8
2016-07-26 22:57:37 +02:00
Ed Sanders 6064eb3dc4 Fix preview to use a valid document slice
An inline content node must exist inside a content branch node (paragraph).

Bug: T141306
Change-Id: I6bf2f99938940c1a5e34db16fbe582b15991a7c6
2016-07-26 16:06:07 +01:00
Roan Kattouw 5483b25657 Reduce mayhem caused by ?oldid=currentRevId
If you viewed a page with an ?oldid= query parameter set to the ID
of the current revision, some parts of VE would believe we were
in oldid mode (because there's an oldid present), but others
wouldn't (because the revid we're editing equals the newest revid).
This caused bugs when opening the editor a second time after saving
(which is normally impossible to do after an oldid-mode edit, because
we navigate to a new page after an oldid save, but we don't do that
in this case).

Ensure that:
* The internal state of DesktopArticleTarget is updated correctly
  after saving in this case
* The ?oldid= parameter is removed from the URL after saving
* DesktopArticleTarget.init doesn't preload the article HTML
  on a second/subsequent editor load: this causes issues because
  it caches the oldid, and generally speaking the Target's internal
  state is not considered

Bug: T141330
Change-Id: I74034328797c59f7249f1f6f4f53a92ee1c26334
2016-07-25 20:04:47 -07:00
Translation updater bot 519cdb2c34 Localisation updates from https://translatewiki.net.
Change-Id: I70c9b99aec2170e4634b369348f0b9bc668bd5e6
2016-07-25 22:26:36 +02:00
Ed Sanders d86bdccf89 Only apply font fix to global overlay
Bug: T141262
Change-Id: I6a99eefc683bb72c79bf13de2a1f89c37c443310
2016-07-25 14:48:49 +01:00
Translation updater bot a8dfd811ac Localisation updates from https://translatewiki.net.
Change-Id: I4282b43db782928122f4562cd3f9d07e284a4c56
2016-07-24 22:26:36 +02:00
Translation updater bot 392a67134c Localisation updates from https://translatewiki.net.
Change-Id: I76baa57bfcb3ad9c773f125390fc3232c1eb90ec
2016-07-23 22:28:33 +02:00
Translation updater bot ec39ae9cda Localisation updates from https://translatewiki.net.
Change-Id: I62ac51cb828ac616bb7000bbec38deb0af504681
2016-07-22 22:43:35 +02:00
Translation updater bot 874fdae6e7 Localisation updates from https://translatewiki.net.
Change-Id: I640d1db416d3a4d586b2a2b14ab90449b51144aa
2016-07-21 23:02:36 +02:00
jenkins-bot 522b3498ce Merge "MWGalleryDialog: Add new 'slideshow' mode" 2016-07-21 00:54:08 +00:00