Santhosh has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/361640 )

Change subject: CX2: Remove usage of data-seqid attribute
......................................................................

CX2: Remove usage of data-seqid attribute

This is no longer generated from cxserver.

Change-Id: I07f170ca731bba3d2f8cb817ed5192856c0bf320
---
M modules/mw.cx.TranslationController.js
1 file changed, 1 insertion(+), 4 deletions(-)


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

diff --git a/modules/mw.cx.TranslationController.js 
b/modules/mw.cx.TranslationController.js
index 3ba000f..57977f9 100644
--- a/modules/mw.cx.TranslationController.js
+++ b/modules/mw.cx.TranslationController.js
@@ -208,7 +208,7 @@
  * @return {Object[]} Objects to save
  */
 mw.cx.TranslationController.prototype.getTranslationUnitData = function ( 
translationUnit ) {
-       var sequenceId, origin, translationSource, records = [],
+       var origin, translationSource, records = [],
                validate;
 
        if ( !( translationUnit instanceof mw.cx.dm.SectionTranslationUnit ) ) {
@@ -218,7 +218,6 @@
        // XXX Section validation for abusefilter
        validate = false;
 
-       sequenceId = translationUnit.sourceDocument.getAttribute( 'data-seqid' 
);
        // XXX should use the promise, but at this point the member variable 
should always be present
        translationSource = translationUnit.MTProvider;
        if ( translationSource === 'source' || translationSource === 'scratch' 
) {
@@ -231,7 +230,6 @@
                content: translationUnit.getTargetDocument().outerHTML,
                sectionId: translationUnit.sourceDocument.id, // source section 
id is the canonical section id.
                validate: validate,
-               sequenceId: sequenceId,
                origin: origin
        } );
        // XXX: Source sections are saved only once.
@@ -239,7 +237,6 @@
                content: translationUnit.getSourceDocument().outerHTML,
                sectionId: translationUnit.sourceDocument.id,
                validate: false,
-               sequenceId: sequenceId,
                origin: 'source'
        } );
        return records;

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I07f170ca731bba3d2f8cb817ed5192856c0bf320
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