Santhosh has uploaded a new change for review.

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

Change subject: Fire change event when translation is cleared
......................................................................

Fire change event when translation is cleared

Without this the aligner is notified about change and the section alignment
goes wrong

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


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

diff --git a/modules/tools/ext.cx.tools.mt.js b/modules/tools/ext.cx.tools.mt.js
index 4e96c49..16962c7 100644
--- a/modules/tools/ext.cx.tools.mt.js
+++ b/modules/tools/ext.cx.tools.mt.js
@@ -212,7 +212,7 @@
        MTControlCard.prototype.clearTranslation = function () {
                this.$section
                        .html( '' );
-
+               mw.hook( 'mw.cx.translation.change' ).fire( this.$section );
                this.showRestore();
 
                this.$section.focus();

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

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