Santhosh has uploaded a new change for review. (
https://gerrit.wikimedia.org/r/356326 )
Change subject: CX2: Set the data attribute for TranslationToolWidget
......................................................................
CX2: Set the data attribute for TranslationToolWidget
This is required when we want to check for duplicates in the tools
container.
Change-Id: If99d24c8d213f7ea15f36e504c37e570f8355c88
---
M modules/ui/widgets/mw.cx.ui.TranslationToolWidget.js
1 file changed, 4 insertions(+), 2 deletions(-)
git pull
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/ContentTranslation
refs/changes/26/356326/1
diff --git a/modules/ui/widgets/mw.cx.ui.TranslationToolWidget.js
b/modules/ui/widgets/mw.cx.ui.TranslationToolWidget.js
index 7993169..10d0d4d 100644
--- a/modules/ui/widgets/mw.cx.ui.TranslationToolWidget.js
+++ b/modules/ui/widgets/mw.cx.ui.TranslationToolWidget.js
@@ -11,13 +11,15 @@
* @cfg {string} title The tool title
*/
mw.cx.widgets.TranslationToolWidget = function CXTranslationToolWidget(
translationTool, config ) {
+ this.translationTool = translationTool;
config = $.extend( {}, config, {
classes: [ 'cx-card', 'cx-card-' + config.name ],
expanded: false,
framed: true,
- padded: false
+ padded: false,
+ data: this.translationTool.getData()
} );
- this.translationTool = translationTool;
+
// Parent constructor
mw.cx.widgets.TranslationToolWidget.parent.call( this, config );
--
To view, visit https://gerrit.wikimedia.org/r/356326
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: If99d24c8d213f7ea15f36e504c37e570f8355c88
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