Revert "Only change edit tab text if the current text is as expected"

Apparently doesn't work in English.

This reverts commit 8239437a3f.

Change-Id: I03a375c85b32058992d5956b6801605fa997dd7d
This commit is contained in:
Jforrester 2015-08-01 00:29:51 +00:00
parent 8239437a3f
commit 37b50a273f
2 changed files with 2 additions and 3 deletions

View file

@ -263,8 +263,7 @@
"visualeditor-ca-editsource-section",
"postedit-confirmation-created",
"postedit-confirmation-restored",
"postedit-confirmation-saved",
"edit"
"postedit-confirmation-saved"
],
"position": "top"
},

View file

@ -352,7 +352,7 @@
$caEditLink.text( mw.msg( tabMessages[action + 'localdescriptionsource'] ) );
}
} else {
if ( tabMessages[action + 'source'] !== null && $caEditLink.text() === mw.msg( 'edit' ) ) {
if ( tabMessages[action + 'source'] !== null ) {
$caEditLink.text( mw.msg( tabMessages[action + 'source'] ) );
}
}