3 "name": "Pman.Dialog.CmsLanguagePick",
6 "path": "/home/alan/gitlive/Pman.Cms/Pman.Dialog.CmsLanguagePick.bjs",
14 "title": "Select a Language",
16 "xtype": "LayoutDialog",
21 "xtype": "LayoutRegion",
26 "xtype": "ContentPanel",
31 "|actioncomplete": "function(_self,action)\n{\n if (action.type == 'setdata') {\n //_this.dialog.el.mask(\"Loading\");\n //this.load({ method: 'GET', params: { '_id' : _this.data.id }});\n return;\n }\n if (action.type == 'load') {\n _this.dialog.el.unmask();\n return;\n }\n if (action.type =='submit') {\n \n _this.dialog.el.unmask();\n _this.dialog.hide();\n \n if (_this.callback) {\n _this.callback.call(_this, _this.form.getValues());\n }\n _this.form.reset();\n return;\n }\n}\n",
32 "|rendered": "function (form)\n{\n _this.form= form;\n}\n"
35 "style": "margin:10px;",
37 "|url": "baseURL + '/Roo/INGORE.php'",
43 "displayField": "title",
45 "fieldLabel": "Language",
48 "name": "language_name",
49 "triggerAction": "all",
64 "|url": "baseURL + '/I18N/Language.php'",
71 "totalProperty": "total",
72 "xtype": "JsonReader",
73 "|fields": "[\n {\n 'name': 'code',\n 'type': 'string'\n },\n {\n 'name': 'title',\n 'type': 'string'\n }\n]",
86 "click": "function (_self, e)\n{\n _this.dialog.hide();\n}"
95 "click": "function (_self, e)\n{\n // do some checks?\n \n var lang= this.form.findField('language').getValue();\n if (!lang.length) {\n \n Roo.MessageBox.alert(\"Error\", \"Select language\");\n return;\n \n }\n _this.dialog.hide();\n _this.callback(lang);\n \n\n}"