Amire80 has uploaded a new change for review.

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


Change subject: Update the statsbar when saving or proofreading
......................................................................

Update the statsbar when saving or proofreading

Because of a typo in the code the statsbar at the bottom
of the TUX message table was not actually update when
saving or proofreading a message.

This resolves it.

Change-Id: Icccc2b858cbe3a92703da1b6bd280ea17b4077bd
---
M resources/js/ext.translate.editor.js
M resources/js/ext.translate.proofread.js
2 files changed, 9 insertions(+), 3 deletions(-)


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

diff --git a/resources/js/ext.translate.editor.js 
b/resources/js/ext.translate.editor.js
index 237bb24..abd3a75 100644
--- a/resources/js/ext.translate.editor.js
+++ b/resources/js/ext.translate.editor.js
@@ -156,7 +156,7 @@
                        if ( this.message.properties ) {
                                $( '.tux-action-bar .tux-statsbar' ).trigger(
                                        'change',
-                                       [ 'translated', 
this.message.properties.state ]
+                                       [ 'translated', 
this.message.properties.status ]
                                );
                                // TODO: Update any other statsbar for the same 
group in the page.
                        }
diff --git a/resources/js/ext.translate.proofread.js 
b/resources/js/ext.translate.proofread.js
index 8b1db0d..a496a64 100644
--- a/resources/js/ext.translate.proofread.js
+++ b/resources/js/ext.translate.proofread.js
@@ -152,7 +152,10 @@
                                        proofread.markSelfTranslation();
                                        // Update stats - to translated state 
from current state.
                                        $( '.tux-action-bar .tux-statsbar' )
-                                               .trigger( 'change', [ 
'translated', proofread.message.properties.state ] );
+                                               .trigger(
+                                                       'change',
+                                                       [ 'translated', 
proofread.message.properties.status ]
+                                               );
                                }
                        } );
 
@@ -295,7 +298,10 @@
                                        .text( mw.language.convertNumber( 
reviews + 1 ) );
 
                                // Update stats
-                               $( '.tux-action-bar .tux-statsbar' ).trigger( 
'change', [ 'proofread', proofread.message.properties.state ] );
+                               $( '.tux-action-bar .tux-statsbar' ).trigger(
+                                       'change',
+                                       [ 'proofread', 
proofread.message.properties.status ]
+                               );
                        }, function () {
                                mw.log( 'Error while submitting the message for 
proofread.' );
                        } );

-- 
To view, visit https://gerrit.wikimedia.org/r/103192
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Icccc2b858cbe3a92703da1b6bd280ea17b4077bd
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Translate
Gerrit-Branch: master
Gerrit-Owner: Amire80 <amir.ahar...@mail.huji.ac.il>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to