After 5c0c117, clicking the VE edit tab on /wiki/Foo?oldid=123
sent you to /wiki/Foo?veaction=edit , dropping the oldid parameter
and editing the current version rather than the old version.
Fix this by only recomputing veEditUri from scratch when necessary,
and reusing the current URI when possible.
Change-Id: Iee9a745990f1a2bad40f46b8cdaaa727bb7fead8
On mobile, TargetEvents can be loaded without
ViewPageTarget.init, and in that case ve.track()
will be undefined.
Bug: 73038
Change-Id: I0b6bfb8b0fbdbfca57d48775b3634d70ca658f98
Deep-extending originalData is asking for trouble, because there's
no way to delete anything that way.
Bug: 73134
Change-Id: I44d3e582e04942efceae3e0bdbbaa147095b5146
New changes:
fe0bc6c Move most of ve.js to ve.utils.js
6be79d9 Remove and restore selection for non-isolated dialogs
2bf123d Localisation updates from https://translatewiki.net.
d2c4d18 Fix missed conversion of inlineMenuWidget to dropdownWidget in demos
bc4355a Localisation updates from https://translatewiki.net.
Local changes:
* ve.utils.js updates
Change-Id: Ibb7d7483b23edcccbd83dc8fadd4407dca380a25
setMode() is called multiple times, but it didn't
check whether the mode being set was already set.
Because it's a setter, make it idempotent.
This fixes the problem where the first input will
be focused first, then blurred later, but it
introduces a new problem because the label for
the 'mode' ActionWidget is set from setMode().
To solve that, factor the setting of this label
out into its own function and call it on setup.
Bug: 73138
Change-Id: I9bb127f22f6c0b745b393c523ec42f320fc85cf3
New changes:
a824357 Node method cleanups
fa4e504 Add isAllowed(Child|Parent)NodeType to ve.Node
08974ed Replace block drop logic with isAllowedChildNodeType check
5fb113e Don't focus Edit HTML on load
799d27b Create table cells with wrapper paragraphs by default
5d3b5db Localisation updates from https://translatewiki.net.
11cb975 Use hasOwnProperty instead of 'key in obj'
77e24e2 Update OOjs to v1.1.2
bd36a32 Update OOjs UI to v0.1.0-pre (12b66051ff)
f368788 Localisation updates from https://translatewiki.net.
1ee759b Fix non-linear selection handling in ce.Surface#focus
Change-Id: I89aba1cb50cda91721473c2c33b41d7b12433bd5
* A subclass of MenuItemWidget from OOUI, MWLinkMenuItemWidget, is introduced that, when used in MWLinkTargetInputWidget for both
external and internal links, returns actual page links.
* MWInternalLinkMenuItemWidget is extended from MWLinkMenuItemWidget to support the internal links.
* LinkCache is being used in MWInternalLinkMenuItemWidet to stylize the links. Thus, getting rid of some old css classes.
Bug: 51205
Change-Id: I3ac18dabd514ca539fff1db3c67ae97931c3d4fc
We need to figure out where the language screenshot elements reside
merged as an interim step to share the code more easily, no change
to function
Change-Id: Icae480aaa526a9de6e6926e027c0cac0c7de997e
We possibly want to discourage this somehow but our current
functionality achieves this by doing an isolateAndUnwrap
which for a table is catastrophic.
Bug: 72990
Change-Id: I79f1348da20385dfec014afcac0fb5464580cf2f
We were attaching its removal to the wrong promise in 2 of the 3
places where it was being called.
Also this file is horrible and should be refactored. A lot.
Change-Id: If74b1629266f22e2d110305b139bef4a8e69b13b