From 3807a918f9256e422b5f444d632cd2dff3d73d90 Mon Sep 17 00:00:00 2001 From: Alex Monk Date: Fri, 11 Mar 2016 05:36:15 +0000 Subject: [PATCH] Reload page after user selects multi-tab option of SET dialog Bug: T129510 Change-Id: I3fcac175f18d8159e6a5c4084668264d4705970c --- .../ve-mw/init/targets/ve.init.mw.DesktopArticleTarget.init.js | 2 ++ modules/ve-mw/init/targets/ve.init.mw.DesktopArticleTarget.js | 2 ++ 2 files changed, 4 insertions(+) diff --git a/modules/ve-mw/init/targets/ve.init.mw.DesktopArticleTarget.init.js b/modules/ve-mw/init/targets/ve.init.mw.DesktopArticleTarget.init.js index ee164a93ef..518149073b 100644 --- a/modules/ve-mw/init/targets/ve.init.mw.DesktopArticleTarget.init.js +++ b/modules/ve-mw/init/targets/ve.init.mw.DesktopArticleTarget.init.js @@ -800,6 +800,8 @@ if ( data && data.action === 'prefer-ve' ) { location.href = veEditUri; + } else if ( data && data.action === 'multi-tab' ) { + location.reload(); } } ); } diff --git a/modules/ve-mw/init/targets/ve.init.mw.DesktopArticleTarget.js b/modules/ve-mw/init/targets/ve.init.mw.DesktopArticleTarget.js index fc20140788..2c529dde76 100644 --- a/modules/ve-mw/init/targets/ve.init.mw.DesktopArticleTarget.js +++ b/modules/ve-mw/init/targets/ve.init.mw.DesktopArticleTarget.js @@ -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(); } } ); }