{ "name" : "Pman.Dialog.BAdminImportUrl", "parent" : "", "title" : "Pman.Dialog.BAdminImportUrl", "path" : "/home/johns/gitlive/Pman.BAdmin/Pman.Dialog.BAdminImportUrl.bjs", "permname" : "", "modOrder" : "001", "strings" : { "c8c55f55be8cbe3141db7e26ab0a8b4e" : "Import URL", "ea4788705e6873b424c65e91c2846b19" : "Cancel", "e0aa021e21dddbd6d8cecec71e9cf564" : "OK", "e6b391a8d2c4d45902a23a8b6585703d" : "URL" }, "items" : [ { "xtype" : "Modal", "$ xns" : "Roo.bootstrap", "String title" : "Import URL", "items" : [ { "listeners" : { "click" : "function (_self, e)\n{\n _this.dialog.hide();\n}" }, "xtype" : "Button", "html" : "Cancel", "$ xns" : "Roo.bootstrap", "* prop" : "buttons[]", "$ String weight" : "'default'" }, { "listeners" : { "click" : "function (_self, e)\n{\n _this.form.doAction(\"submit\");\n}" }, "String weight" : "primary", "xtype" : "Button", "html" : "OK", "$ xns" : "Roo.bootstrap", "* prop" : "buttons[]" }, { "listeners" : { "actionfailed" : "function (_self, action)\n{\n if (action.type == 'submit') {\n \n Roo.bootstrap.MessageBox.alert(\"Cannot import from URL\", \"Invalid URL format\");\n }\n}", "actioncomplete" : "function (_self, action)\n{\n if (action.type == 'setdata') {\n if(_this.data.target){\n _this.form.url = baseURL + _this.data.target;\n }\n \n \n /*\r\n if(_this.data.id*1 > 0) {\r\n this.load({ method: 'GET', params: { '_id' : _this.data.id }});\n }\r\n */\r\n }\n \r\n if (action.type == 'load') {\r\n return;\r\n }\n \r\n if (action.type =='submit') {\r\n //action.result.data\r\n _this.dialog.hide();\r\n //Roo.log(_this.callback);\r\n if (_this.callback) {\r\n _this.callback.call(_this, action.result.data);\r\n }\r\n _this.form.reset();\r\n return;\r\n }\n}", "render" : "function (_self)\n{\n _this.form = this;\n}" }, "xtype" : "Form", "$ xns" : "Roo.bootstrap", "String method" : "POST", "$ String url" : "baseURL", "items" : [ { "String name" : "importUrl", "xtype" : "Input", "string fieldLabel" : "URL", "String labelAlign" : "left", "$ xns" : "Roo.bootstrap", "Number labelWidth" : 1 } ] } ] } ] }