mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-29 00:30:44 +00:00
(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:
parent
3b93607fea
commit
bf06930663
|
@ -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' ) )
|
||||
|
|
Loading…
Reference in a new issue