3 "name": "Pman.Dialog.CmsTranslateTemplates",
6 "path": "/home/edward/gitlive/Pman.Cms/Pman.Dialog.CmsTranslateTemplates.bjs",
15 "title": "Edit Translation",
17 "xtype": "LayoutDialog",
23 "xtype": "LayoutRegion",
24 "|title": "\"Note: If the original text contains template variables like {TEMPLATE_VARIABLE} <br/>Be careful to retain them otherwise the translation may not work\"",
28 "xtype": "ContentPanel",
37 "|actionfailed": "function (_self, action)\n{\n _this.dialog.el.unmask();\n Pman.standardActionFailed(_self, action);\n}\n",
38 "|actioncomplete": "function (_self, action)\n{\n \n if (action.type == 'setdata') {\n //_this.dialog.el.mask(\"Loading\");\n \n Roo.log(_this.data);\n return;\n }\n if (action.type == 'load') {\n return;\n }\n if (action.type =='submit') {\n _this.dialog.hide();\n if (_this.callback) {\n _this.callback.call(_this, _this.form.getValues());\n }\n _this.form.reset();\n return;\n }\n}\n",
39 "|rendered": "function (form)\n{\n _this.form = form;\n}"
42 "style": "margin: 5px",
53 "fieldLabel": "Original",
69 "fieldLabel": "Translation",
87 "|click": "function() {\n _this.form.reset();\n _this.dialog.hide();\n}"
93 "|click": "function() {\n _this.dialog.el.mask(\"Saving\");\n //_this.form.doAction('submit');\n _this.dialog.hide();\n if (_this.callback) {\n _this.callback.call(_this, _this.form.getValues());\n }\n _this.dialog.el.unmask();\n _this.form.reset();\n}"