From 37b50a273f0b63d0ae285a3a7335a29656f80c6a Mon Sep 17 00:00:00 2001 From: Jforrester Date: Sat, 1 Aug 2015 00:29:51 +0000 Subject: [PATCH] Revert "Only change edit tab text if the current text is as expected" Apparently doesn't work in English. This reverts commit 8239437a3faa990e1e5873affd8919719025557e. Change-Id: I03a375c85b32058992d5956b6801605fa997dd7d --- extension.json | 3 +-- .../ve-mw/init/targets/ve.init.mw.DesktopArticleTarget.init.js | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/extension.json b/extension.json index 7f556d32bf..a2f46eaa9a 100644 --- a/extension.json +++ b/extension.json @@ -263,8 +263,7 @@ "visualeditor-ca-editsource-section", "postedit-confirmation-created", "postedit-confirmation-restored", - "postedit-confirmation-saved", - "edit" + "postedit-confirmation-saved" ], "position": "top" }, diff --git a/modules/ve-mw/init/targets/ve.init.mw.DesktopArticleTarget.init.js b/modules/ve-mw/init/targets/ve.init.mw.DesktopArticleTarget.init.js index 6184da2763..527c15ac56 100644 --- a/modules/ve-mw/init/targets/ve.init.mw.DesktopArticleTarget.init.js +++ b/modules/ve-mw/init/targets/ve.init.mw.DesktopArticleTarget.init.js @@ -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'] ) ); } }