mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-25 14:56:20 +00:00
Merge "Check for 'veaction' when clicking section edit links"
This commit is contained in:
commit
a234120771
|
@ -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