Merge "Use onEditTabClick handler in SingleEditTab"

This commit is contained in:
jenkins-bot 2016-11-08 17:10:06 +00:00 committed by Gerrit Code Review
commit efb4133119

View file

@ -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 );
} );
}
}