Follow-up I6eda4a7c: Fix typos in #updateTabs

Change-Id: Ib80dec3fb199ea03609d5d0f242ac606052f24cc
This commit is contained in:
Ed Sanders 2016-12-13 15:19:05 +00:00
parent a962e7de3b
commit 56c34fbf79

View file

@ -224,8 +224,8 @@ ve.init.mw.ArticleTarget.prototype.updateTabs = function ( editing ) {
if ( editing ) { if ( editing ) {
if ( this.section === 'new' ) { if ( this.section === 'new' ) {
tab = 'addsection'; tab = 'addsection';
} else if ( $( 've-edit' ).length ) { } else if ( $( '#ca-ve-edit' ).length ) {
if ( this.getDefaultMode() === 've' ) { if ( this.getDefaultMode() === 'visual' ) {
tab = 've-edit'; tab = 've-edit';
} else { } else {
tab = 'edit'; tab = 'edit';