Reload page after user selects multi-tab option of SET dialog

Bug: T129510
Change-Id: I3fcac175f18d8159e6a5c4084668264d4705970c
This commit is contained in:
Alex Monk 2016-03-11 05:36:15 +00:00
parent ada244c6f8
commit 3807a918f9
2 changed files with 4 additions and 0 deletions

View file

@ -800,6 +800,8 @@
if ( data && data.action === 'prefer-ve' ) {
location.href = veEditUri;
} else if ( data && data.action === 'multi-tab' ) {
location.reload();
}
} );
}

View file

@ -271,6 +271,8 @@ ve.init.mw.DesktopArticleTarget.prototype.loadSuccess = function ( response ) {
if ( data && data.action === 'prefer-wt' ) {
target.switchToWikitextEditor( true, false );
} else if ( data && data.action === 'multi-tab' ) {
location.reload();
}
} );
}