mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-29 00:30:44 +00:00
Check for 'veaction' when clicking section edit links
Such as in the 'add topic' link. Bug: T157104 Change-Id: Ide2d4cf8c23a5d0db24456d15b4312f7c0a5f922
This commit is contained in:
parent
6e585c457c
commit
6bd650d50a
|
@ -685,7 +685,7 @@
|
|||
uri = new mw.Uri( e.target.href ),
|
||||
title = mw.Title.newFromText( uri.query.title || '' );
|
||||
|
||||
if ( !init.isUnmodifiedLeftClick( e ) || !( 'action' in uri.query ) ) {
|
||||
if ( !init.isUnmodifiedLeftClick( e ) || !( 'action' in uri.query || 'veaction' in uri.query ) ) {
|
||||
return;
|
||||
}
|
||||
if ( title && title.getPrefixedText() !== new mw.Title( mw.config.get( 'wgRelevantPageName' ) ).getPrefixedText() ) {
|
||||
|
|
Loading…
Reference in a new issue