mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-12-01 17:36:35 +00:00
Set title of page to use if discarding changes when changing to the wikitext editor
Turns out it's a bad idea to do most testing on the default page Bug: 68121 Change-Id: Ie9729dba4e8ca690625a6553703e9ff30cb5106e
This commit is contained in:
parent
54a1a85e6e
commit
c1c80f6985
|
@ -929,6 +929,11 @@ ve.init.mw.ViewPageTarget.prototype.editSource = function () {
|
|||
'name': 'veswitched',
|
||||
'value': 1,
|
||||
'type': 'hidden'
|
||||
} ),
|
||||
$( '<input>' ).attr( {
|
||||
'name': 'title',
|
||||
'value': target.pageName,
|
||||
'type': 'hidden'
|
||||
} )
|
||||
).appendTo( 'body' ).submit();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue