jenkins-bot has submitted this change and it was merged.

Change subject: Use mw.Api().post() in ext.translate.messagetable.js
......................................................................


Use mw.Api().post() in ext.translate.messagetable.js

Bug: T64956
Change-Id: Ia569b4278ac110fcab0eb60f2d0b4b4789b08872
---
M resources/js/ext.translate.messagetable.js
1 file changed, 2 insertions(+), 3 deletions(-)

Approvals:
  Krinkle: Looks good to me, but someone else must approve
  Siebrand: 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 b074bdc..10a5298 100644
--- a/resources/js/ext.translate.messagetable.js
+++ b/resources/js/ext.translate.messagetable.js
@@ -811,13 +811,12 @@
                        params = {
                                action: 'translationreview',
                                token: $b.data( 'token' ),
-                               revision: $b.data( 'revision' ),
-                               format: 'json'
+                               revision: $b.data( 'revision' )
                        };
                        $b.val( mw.msg( 'translate-messagereview-progress' ) );
                        $b.prop( 'disabled', true );
 
-                       $.post( mw.util.wikiScript( 'api' ), params, 
successFunction ).fail( failFunction );
+                       new mw.Api().post( params ).done( successFunction 
).fail( failFunction );
                } );
        } );
 

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

Gerrit-MessageType: merged
Gerrit-Change-Id: Ia569b4278ac110fcab0eb60f2d0b4b4789b08872
Gerrit-PatchSet: 2
Gerrit-Project: mediawiki/extensions/Translate
Gerrit-Branch: master
Gerrit-Owner: Nemo bis <federicol...@tiscali.it>
Gerrit-Reviewer: Krinkle <krinklem...@gmail.com>
Gerrit-Reviewer: Nikerabbit <niklas.laxst...@gmail.com>
Gerrit-Reviewer: Siebrand <siebr...@kitano.nl>
Gerrit-Reviewer: jenkins-bot <>

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

Reply via email to