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:
Ed Sanders 2017-02-08 17:48:04 +00:00
parent 6e585c457c
commit 6bd650d50a

View file

@ -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() ) {