jenkins-bot has submitted this change and it was merged.
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(-)
Approvals:
Divec: Looks good to me, approved
jenkins-bot: Verified
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: merged
Gerrit-Change-Id: Ie34c8880b595dbb580f8767196c8e0eb19368fd9
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/ContentTranslation
Gerrit-Branch: master
Gerrit-Owner: Santhosh <[email protected]>
Gerrit-Reviewer: Divec <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits