mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-09-25 03:08:42 +00:00
Follow-up I6eda4a7c: Fix typos in #updateTabs
Change-Id: Ib80dec3fb199ea03609d5d0f242ac606052f24cc
This commit is contained in:
parent
a962e7de3b
commit
56c34fbf79
|
@ -224,8 +224,8 @@ ve.init.mw.ArticleTarget.prototype.updateTabs = function ( editing ) {
|
|||
if ( editing ) {
|
||||
if ( this.section === 'new' ) {
|
||||
tab = 'addsection';
|
||||
} else if ( $( 've-edit' ).length ) {
|
||||
if ( this.getDefaultMode() === 've' ) {
|
||||
} else if ( $( '#ca-ve-edit' ).length ) {
|
||||
if ( this.getDefaultMode() === 'visual' ) {
|
||||
tab = 've-edit';
|
||||
} else {
|
||||
tab = 'edit';
|
||||
|
|
Loading…
Reference in a new issue