mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-09-25 11:16:51 +00:00
Merge "ve.init.mw.DesktopArticleTarget.init: Make switching to VE for new pages work"
This commit is contained in:
commit
5f162522eb
|
@ -529,7 +529,9 @@
|
|||
},
|
||||
|
||||
activateVe: function () {
|
||||
var wikitextModified = $( '#wpTextbox1' ).val() !== initialWikitext;
|
||||
var
|
||||
wikitext = $( '#wpTextbox1' ).val(),
|
||||
wikitextModified = wikitext !== initialWikitext;
|
||||
|
||||
if (
|
||||
mw.config.get( 'wgAction' ) === 'submit' ||
|
||||
|
@ -556,8 +558,10 @@
|
|||
} );
|
||||
} );
|
||||
} );
|
||||
} else {
|
||||
} else if ( wikitext ) {
|
||||
activatePageTarget();
|
||||
} else {
|
||||
location.href = veEditUri;
|
||||
}
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in a new issue