1 //<script type="text/javascript">
3 // Auto generated file - created by app.Builder.js- do not edit directly (at present!)
5 Pman.Dialog.CmsTranslateTemplates = {
10 show : function(data, cb)
18 this.dialog.show(this.data._el);
21 this.form.setValues(data);
22 this.form.fireEvent('actioncomplete', this.form, { type: 'setdata', data: data });
30 this.dialog = Roo.factory({
31 xtype: 'LayoutDialog',
39 title : "Edit Translation",
43 xtype: 'ContentPanel',
53 actionfailed : function (_self, action)
55 _this.dialog.el.unmask();
56 Pman.standardActionFailed(_self, action);
58 actioncomplete : function (_self, action)
61 if (action.type == 'setdata') {
62 //_this.dialog.el.mask("Loading");
67 if (action.type == 'load') {
70 if (action.type =='submit') {
73 _this.callback.call(_this, _this.form.getValues());
79 rendered : function (form)
85 style : 'margin: 5px',
96 fieldLabel : 'Original',
112 fieldLabel : 'Translation',
125 xtype: 'LayoutRegion',
128 title : "Note: If the original text contains template variables like {TEMPLATE_VARIABLE} <br/>Be careful to retain them otherwise the translation may not work"
147 _this.dialog.el.mask("Saving");
148 //_this.form.doAction('submit');
150 if (_this.callback) {
151 _this.callback.call(_this, _this.form.getValues());
153 _this.dialog.el.unmask();