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

Change subject: Support removal of reference from reference tool
......................................................................

Support removal of reference from reference tool

Change-Id: I16e75b9897a7a61eeded2b1ab0f47206ebab2b09
---
M modules/tools/mw.cx.tools.ReferenceTool.js
1 file changed, 4 insertions(+), 2 deletions(-)


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

diff --git a/modules/tools/mw.cx.tools.ReferenceTool.js 
b/modules/tools/mw.cx.tools.ReferenceTool.js
index 73ad043..77535ce 100644
--- a/modules/tools/mw.cx.tools.ReferenceTool.js
+++ b/modules/tools/mw.cx.tools.ReferenceTool.js
@@ -34,12 +34,14 @@
        this.actions = [
                this.removeReferenceButton
        ];
-
+       this.removeReferenceButton.connect( this, {
+               click: 'removeReference'
+       } );
        return this.actions;
 };
 
 mw.cx.tools.ReferenceTool.prototype.getContent = function () {
-       return this.translationUnitDataModel.getTargetHTMLContent();
+       return this.translationUnit.getTargetHTMLContent();
 };
 
 /**

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I16e75b9897a7a61eeded2b1ab0f47206ebab2b09
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/ContentTranslation
Gerrit-Branch: master
Gerrit-Owner: Santhosh <santhosh.thottin...@gmail.com>

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

Reply via email to