mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-09-25 03:08:42 +00:00
Merge "Use onEditTabClick handler in SingleEditTab"
This commit is contained in:
commit
efb4133119
|
@ -1023,12 +1023,7 @@
|
|||
} );
|
||||
// Allow instant switching to edit mode, without refresh
|
||||
$( '#ca-edit' ).on( 'click', function ( e ) {
|
||||
e.preventDefault();
|
||||
if ( isLoading ) {
|
||||
return;
|
||||
}
|
||||
trackActivateStart( { type: 'page', mechanism: 'click' } );
|
||||
activateTarget( isOnlyTabVE() ? 'visual' : 'source' );
|
||||
init.onEditTabClick( isOnlyTabVE() ? 'visual' : 'source', e );
|
||||
} );
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue