Commit graph

8063 commits

Author SHA1 Message Date
Ed Sanders 97e0cd28a5 Make missingref references uneditable, not uninspectable
Depends on I1ba8978dd in core.

Bonus: remove not-allowed-cursor & highlight title (which was
broken) now that we can display this information properly.

Bug: T106810
Change-Id: I1800490ba1b8e10ff54b26372a8a78661c1c7d68
2015-07-24 12:03:05 -07:00
Ed Sanders 8250c8ad54 Separate 'isMissing' micro cache from full link data cache
Bug: T106819
Change-Id: I72f52d63968aa1ac842b2aa503150cf114f9d711
2015-07-24 16:17:35 +01:00
Alex Monk 3b978f0b4e Add save button to review mode on save dialog
Bug: T69868
Change-Id: I393a37333ea4988547c82e1fa9747b5e034de9bd
2015-07-24 01:34:13 +01:00
Alex Monk 82fb5f609a Parse SpamBlacklist error on the server-side
The client won't be able to deal with templates etc.

Bug: T99830
Change-Id: I78611a3f061b1afd73de052aa9ddff48dc368f2d
2015-07-23 18:49:42 +00:00
jenkins-bot 31e45cf530 Merge "build: Drop last jscs over-ride and make pass" 2015-07-23 18:48:48 +00:00
James D. Forrester 57f8fc5368 build: Drop last jscs over-ride and make pass
Change-Id: I4ff60af79cfc6e09e284d51f9b7ac2afa900f0f5
2015-07-22 15:13:09 -07:00
jenkins-bot 8d467915f7 Merge "Revert "For empty / whitespace-only headings, output <p> instead of <h#>"" 2015-07-22 22:05:34 +00:00
Translation updater bot ee6714fbec Localisation updates from https://translatewiki.net.
Change-Id: Iafc851800bbc9c8ebe4e1ad24288fa295edc616f
2015-07-22 22:18:38 +02:00
Translation updater bot f3ca976c84 Localisation updates from https://translatewiki.net.
Change-Id: I3a76ab4a4683f236d43b53691ac68a0d0f8b2f14
2015-07-21 21:48:58 +02:00
jenkins-bot 9924be7acc Merge "[BrowserTest] Add prefixes to language screenshot messages" 2015-07-21 16:38:34 +00:00
Translation updater bot 164be9e07a Localisation updates from https://translatewiki.net.
Change-Id: If9029fc72338d9db0e026ba8ab8b9f4c67b8c110
2015-07-20 21:59:30 +02:00
Bartosz Dziewoński 9134ec2d73 Disallow typing newlines in the edit summary
Prevent typing newlines by pressing the 'Enter' key on the keyboard,
like in a single-line <input type=text />; and filter newlines from
pasted / IME'd text.

Also:
* Use 'classes' config rather than .$element.addClass()
* Remove no-op 'tabIndex' setting (this is the default already)

Bug: T106325
Change-Id: I42d18f51f5ca989818577d6f045f6a516bb5b121
2015-07-20 13:57:25 +02:00
Amir E. Aharoni d231bcbb19 [BrowserTest] Add prefixes to language screenshot messages
Change-Id: I96c01763d1003619e9c8b0f549a53a1956dde16a
2015-07-20 00:24:42 -05:00
Translation updater bot 307c182569 Localisation updates from https://translatewiki.net.
Change-Id: I5c53115b8a2e7b1bf50a0e948da3e574680a5322
2015-07-19 21:39:56 +02:00
Ed Sanders 8e0394da5c Support command whitelist feature
Depends on I87d8aa3 in core.

Bug: T106061
Change-Id: I694e4e5a83f281da92380a895b72611141838f42
2015-07-18 18:20:49 -05:00
Ed Sanders bb46c34255 Update VE core submodule to master (edaa19b)
New changes:
aab2e90 Localisation updates from https://translatewiki.net.
826055a [BREAKING CHANGE] Rename SurfaceWidget to TargetWidget

Local changes:
* [PULL THROUGH] Rename MWSurfaceWidget to MWTargetWidget

Bug: T94066
Change-Id: If578e15c1ee7effd5ca1d6073521a6c59caac255
2015-07-18 17:19:05 -05:00
Translation updater bot fb78225f76 Localisation updates from https://translatewiki.net.
Change-Id: I2e20ea382c59661ad6c387cfe0798064b61f65c2
2015-07-18 22:04:02 +02:00
Vikas S Yaligar d42e10cacb [BrowserTest] Added screenshots scenarios for links and categories
Also minor cleanup of rspec old "should" syntax, changed all occurences to
"expect" syntax.

Change-Id: I0c2dfc18d06812ed9da2f6c0056c95b7755e5afd
2015-07-18 15:39:28 +00:00
jenkins-bot 0e5a6aca32 Merge "Don't set browser-prefixed transition CSS classes" 2015-07-18 05:35:45 +00:00
jenkins-bot 3d6af458dd Merge "ve.init.mw.TargetLoader: Error when RESTbase load call fails" 2015-07-18 05:21:37 +00:00
Kunal Mehta 0653804151 Don't set browser-prefixed transition CSS classes
jQuery will take care of this automatically: <https://api.jquery.com/css/#css2>.

Follows up bf56f56f3e.

Change-Id: I4db46fc70a5446a9ffc9f6d4375fae3b53609ee0
2015-07-17 16:31:56 -05:00
Translation updater bot 2db8d335f8 Localisation updates from https://translatewiki.net.
Change-Id: I56ecd8fe4e6957fa9af3b0b716b0589260b994c4
2015-07-17 22:26:26 +02:00
Vikas S Yaligar 8b7b20b934 [BrowserTest] Add true internationalized content support to language screenshot
* All translations will be in tests/browser/i18n folder
* Hebrew json’s are added, which needs to be translated.

Paired with Zeljko.

Bug: T105466
Change-Id: I4ae516758fb01a41f0dcf53c7cf3e609c7601cf3
2015-07-16 14:47:56 -05:00
Translation updater bot 43eb3493a8 Localisation updates from https://translatewiki.net.
Change-Id: I68b9b35168115f8007297d4a097c22976fc2f165
2015-07-15 21:43:32 +02:00
jenkins-bot 78a629f46b Merge "i18n: Remove references to 'VisualEditor', instead say 'the visual editor'" 2015-07-15 15:35:47 +00:00
Translation updater bot 89b2054b0c Localisation updates from https://translatewiki.net.
Change-Id: I48e93e1833483204d1a877143b918edfe94a7680
2015-07-14 22:03:32 +02:00
Translation updater bot 16263c9a67 Localisation updates from https://translatewiki.net.
Change-Id: I8b7e871ec998cfd7fe958405e5cb1785368f04f8
2015-07-13 21:36:33 +02:00
jenkins-bot c451470224 Merge "Remove listeners from deprecated search widget 'select' events" 2015-07-13 15:17:22 +00:00
jenkins-bot b7631330a8 Merge "ve.ui.MWReferenceResultWidget: Remove unused 'divider' code and styles" 2015-07-13 15:11:48 +00:00
Ed Sanders 0c1eb0cf33 Remove listeners from deprecated search widget 'select' events
Attach listeners to search *result* widget 'choose' events instead.

Also, pass reference model as 'data' to MWReferenceResultWidget, instead
of index so we don't have to do a lookup later.

Change-Id: I8a9b7ddaa70e29406726ac8463582a8bcf813128
2015-07-13 17:06:28 +02:00
Ed Sanders 5fb8d3a4d0 ve.ui.MWReferenceResultWidget: Remove unused 'divider' code and styles
Also, tweak documentation.

Change-Id: Iaf5045bd65d0d484c8810f4bbe097d6710ca6e7e
2015-07-13 17:06:27 +02:00
Translation updater bot 3991fca8ea Localisation updates from https://translatewiki.net.
Change-Id: I0244f2550f52200365d17c181f3af1a0f127a8b3
2015-07-12 21:52:24 +02:00
Translation updater bot 2653374352 Localisation updates from https://translatewiki.net.
Change-Id: Icabe5b8d0612d0f0d3ba67043285c88fac733b4f
2015-07-11 22:08:20 +02:00
Alex Monk 7653dec439 ve.init.mw.TargetLoader: Error when RESTbase load call fails
No retry right now, but we should at least stop failing silently. Doing this
in a window.alert() for now, as OOUI isn't available at this part of the
page load just yet (that will be coming soon).

Bug: T97041
Change-Id: Iacb195667215ee69d3991e4c41651ab6042243c5
2015-07-10 18:13:37 -07:00
jenkins-bot b4cef1cf01 Merge "Never use original data optimisation when in clipboard mode" 2015-07-10 19:49:41 +00:00
Ed Sanders aeedd808cd Never use original data optimisation when in clipboard mode
In clipboard mode we need the full body regardless of if the reference
has changed since load or not.

Bug: T104230
Change-Id: Ie59e04d381f2fd2680e8af0cf05a80df71052822
2015-07-10 19:45:56 +00:00
Translation updater bot e45674e881 Localisation updates from https://translatewiki.net.
Change-Id: I37e335f6f0dcc739c06d67eaf20fdde4fc9c92ae
2015-07-10 21:16:58 +02:00
jenkins-bot 0f44091150 Merge "Bypass ve.ui.MWInternalLinkAnnotationWidget.prototype.getHref when determining text" 2015-07-09 23:22:48 +00:00
Translation updater bot dc66b82009 Localisation updates from https://translatewiki.net.
Change-Id: I99c36d2efef9db27b4956e5ca243f3666a72a1e1
2015-07-09 22:05:40 +02:00
Ed Sanders 924c58a893 Revert "For empty / whitespace-only headings, output <p> instead of <h#>"
Functionality is now provided by Parsoid's scrubWikitext.

This reverts commit 884f301aa0.

Change-Id: I19f340a1c2d9718bfa05c6667042488f3a589719
2015-07-09 11:46:50 +01:00
Alex Monk b8c39de8ef Bypass ve.ui.MWInternalLinkAnnotationWidget.prototype.getHref when determining text
Bug: T104838
Change-Id: I0f754c949e494744adab5f191b5e8acce0c5d0fe
2015-07-09 02:03:04 +01:00
Translation updater bot d69efc426d Localisation updates from https://translatewiki.net.
Change-Id: Ia23b26ce63a463a9bc4d1d512c092bd100fc8683
2015-07-08 21:57:53 +02:00
jenkins-bot 2cf60686af Merge "Check if links are 'known' rather than 'exist' locally" 2015-07-08 19:29:22 +00:00
Ed Sanders 8971edb480 Check if links are 'known' rather than 'exist' locally
This data is used for marking links red, but links which are known
but don't exist (e.g. interwikis) are not red.

Also fix bug in API caused by trying to return a value of (bool)true which is
apparently not allowed. Use (number)1 instead.

Bug: T104604
Change-Id: I599a513a27b31f7167e688d73bc3685141249971
2015-07-08 20:26:04 +01:00
jenkins-bot 3039da4e30 Merge "Fix section scrolling" 2015-07-08 18:32:03 +00:00
jenkins-bot c39bd98597 Merge "Revert "Make toolbar save button frameless"" 2015-07-08 15:38:55 +00:00
Ed Sanders be5df39f5b Fix section scrolling
Core code now has a scrollIntoView animation triggered on focus
which needs to be cancelled before we scroll to the section heading.

Change-Id: I5eb6a5c98b38c2510d2d7f0108fe56e607b34bd6
2015-07-08 15:34:43 +01:00
Translation updater bot 5f89a6ca6e Localisation updates from https://translatewiki.net.
Change-Id: I63422a4e87f7a2f25a935a86ce6104b5aaa2cfa5
2015-07-07 22:12:04 +02:00
Bartosz Dziewoński 652da4afab Revert "Make toolbar save button frameless"
This reverts commit cb11cbd2f5.

Actually not needed after 3d36cac7fc4808f708f03b66f5c099de440e4569
in OOjs UI, and would change the UI in unexpected way.

Bug: T103403
Change-Id: Ia30b168ea29d03aa76ad81d1f9894a67604fdc08
2015-07-07 14:21:04 +00:00
Marc Ordinas i Llopis 7a33613d23 Use Parsoid's new Cite HTML and CSS
Starting with I21fbbd3247bf7801e5ef9bd5312f95777f4dd6ef, Parsoid
will emit a new HTML for its Cite extension, which enables CSS
styling. In I487095df8a7c4241a14f7b4480360f6774130bec the new
module 'ext.cite.style' is added to the Cite extension to style
this new HTML format.

This patch
* Loads the ext.cite.style module if the Cite extension is
  present.
* Uses the new HTML format for the internal structure of
  reference and reference list nodes, so they are correctly
  styled.

Backwards compatibility: Only new HTML is used internally in VE,
so as long as ext.cite.style can be loaded the new styles will be
used. It does not depend on which format Parsoid returns, so this
patch only depends on the Cite extension patch, not on the Parsoid
one.

Note: The only way I've found of adding a ext.cite.style dependency
only if Cite is present is to register the whole
ext.visualEditor.mwreference module in the
onResourceLoaderRegisterModules hook. Maybe someone can point to
a better way?

Bug: T86782
Change-Id: Ibf333a502d64d2ed6e029221458b7c606554e414
2015-07-06 14:23:18 -07:00