(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
This commit is contained in:
Rob Moen 2012-12-05 15:38:50 -08:00
parent 3b93607fea
commit bf06930663

View file

@ -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' ) )