mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-09-26 19:56:49 +00:00
Merge "mw.DesktopArticleTarget: remove action=edit when tearing down as single-tab"
This commit is contained in:
commit
13fb253532
|
@ -1357,7 +1357,8 @@ ve.init.mw.DesktopArticleTarget.prototype.restorePage = function () {
|
|||
}
|
||||
delete uri.query.section;
|
||||
}
|
||||
if ( 'action' in uri.query && $( '#wpTextbox1' ).length === 0 ) {
|
||||
if ( 'action' in uri.query && $( '#wpTextbox1:not(.ve-dummyTextbox)' ).length === 0 ) {
|
||||
// If we're not overlaid on an edit page, remove action=edit
|
||||
delete uri.query.action;
|
||||
mw.config.set( 'wgAction', 'view' );
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue