Santhosh has uploaded a new change for review.

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

Change subject: MT: Set the source HTML in the data object instead of passing 
as data
......................................................................

MT: Set the source HTML in the data object instead of passing as data

New cxserver accepts both, but recommends passing data as object.
See 
https://github.com/wikimedia/mediawiki-services-cxserver/blob/master/app.js#L118

Change-Id: I32d27fb4c9e8c5594865f9ec01b0446c28570f24
---
M modules/tools/ext.cx.tools.mt.js
1 file changed, 3 insertions(+), 1 deletion(-)


  git pull 
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/ContentTranslation 
refs/changes/75/259975/1

diff --git a/modules/tools/ext.cx.tools.mt.js b/modules/tools/ext.cx.tools.mt.js
index 86737dd..a7db4a2 100644
--- a/modules/tools/ext.cx.tools.mt.js
+++ b/modules/tools/ext.cx.tools.mt.js
@@ -138,7 +138,9 @@
                        return $.ajax( {
                                type: 'post',
                                url: mtURL,
-                               data: sourceHtml,
+                               data: {
+                                       html: sourceHtml
+                               },
                                headers: {
                                        Authorization: token
                                }

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I32d27fb4c9e8c5594865f9ec01b0446c28570f24
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/ContentTranslation
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