Santhosh has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/50902


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(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Translate 
refs/changes/02/50902/1

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: newchange
Gerrit-Change-Id: I8dd8ba39b2bf9c1a5e6f64a62391df2c20be80a7
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Translate
Gerrit-Branch: master
Gerrit-Owner: Santhosh <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to