From bf069306635c3c95df4c0b9bf86c769747561773 Mon Sep 17 00:00:00 2001 From: Rob Moen Date: Wed, 5 Dec 2012 15:38:50 -0800 Subject: [PATCH] (Bug 40773) Clicking on minor edit now opens in a new tab. Since the link is generated by a MediaWiki message and as far as I know, the target attribute cannot be added in wikitext. Solution is to add the target attribute via jQuery in the save dialog. Change-Id: I4b6cdee64e7f8e3acb28b21c32c58254d63a8daf --- modules/ve/init/mw/targets/ve.init.mw.ViewPageTarget.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/ve/init/mw/targets/ve.init.mw.ViewPageTarget.js b/modules/ve/init/mw/targets/ve.init.mw.ViewPageTarget.js index 48297cd496..db87b67a49 100644 --- a/modules/ve/init/mw/targets/ve.init.mw.ViewPageTarget.js +++ b/modules/ve/init/mw/targets/ve.init.mw.ViewPageTarget.js @@ -771,6 +771,9 @@ ve.init.mw.ViewPageTarget.prototype.setupSaveDialog = function () { .end() .find( '.ve-init-mw-viewPageTarget-saveDialog-minorEdit-label' ) .html( ve.init.platform.getParsedMessage( 'minoredit' ) ) + .find( 'a' ) + .attr( 'target', '_blank' ) + .end() .end() .find( '.ve-init-mw-viewPageTarget-saveDialog-watchList-label' ) .html( ve.init.platform.getParsedMessage( 'watchthis' ) )