jenkins-bot has submitted this change and it was merged.
Change subject: Fix the toggle style of mode changing buttons of message table
......................................................................
Fix the toggle style of mode changing buttons of message table
Change-Id: I8dd8ba39b2bf9c1a5e6f64a62391df2c20be80a7
---
M resources/js/ext.translate.messagetable.js
1 file changed, 5 insertions(+), 3 deletions(-)
Approvals:
Amire80: Looks good to me, approved
jenkins-bot: Verified
diff --git a/resources/js/ext.translate.messagetable.js
b/resources/js/ext.translate.messagetable.js
index 6244c80..fac3c1a 100644
--- a/resources/js/ext.translate.messagetable.js
+++ b/resources/js/ext.translate.messagetable.js
@@ -63,7 +63,9 @@
}
MessageTable.prototype = {
- init: function () {},
+ init: function () {
+ this.switchMode( this.mode );
+ },
listen: function () {
var messageTable = this;
@@ -365,10 +367,10 @@
var messageTable = this;
messageTable.$actionBar.find( '.down').removeClass(
'down' );
- if ( messageTable.mode === 'translate' ) {
+ if ( mode === 'translate' ) {
messageTable.$actionBar.find(
'.translate-mode-button' ).addClass( 'down' );
}
- if ( messageTable.mode === 'proofread' ) {
+ if ( mode === 'proofread' ) {
messageTable.$actionBar.find(
'.tux-proofread-button' ).addClass( 'down' );
}
--
To view, visit https://gerrit.wikimedia.org/r/50902
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I8dd8ba39b2bf9c1a5e6f64a62391df2c20be80a7
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Translate
Gerrit-Branch: master
Gerrit-Owner: Santhosh <[email protected]>
Gerrit-Reviewer: Amire80 <[email protected]>
Gerrit-Reviewer: jenkins-bot
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits