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:
Alex Monk 2014-07-16 23:15:26 +01:00
parent 54a1a85e6e
commit c1c80f6985

View file

@ -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();
}