X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=blobdiff_plain;f=Pman.Dialog.CoreImportUrl.bjs;h=71c37d096ced43a575a718d592f39768e65eff8c;hp=68f2756e56af1eea9c8f694208f751d8829bb7be;hb=443623f47935eb52acd65a3ff0d84eab1fd5a98b;hpb=b1407e7fe25c7af5313586958e0240dc53305fd1 diff --git a/Pman.Dialog.CoreImportUrl.bjs b/Pman.Dialog.CoreImportUrl.bjs index 68f2756e..71c37d09 100644 --- a/Pman.Dialog.CoreImportUrl.bjs +++ b/Pman.Dialog.CoreImportUrl.bjs @@ -36,19 +36,19 @@ "items" : [ { "listeners" : { - "rendered" : "function (form)\n{\n _this.form= form;\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 }\r\n // _this.dialog.el.mask(\"Loading\");\r\n // if(_this.data.id*1 > 0)\r\n // this.load({ method: 'GET', params: { '_id' : _this.data.id }});\r\n \r\n return;\r\n }\r\n if (action.type == 'load') {\r\n \r\n return;\r\n }\r\n if (action.type =='submit') {\r\n \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}" + "actioncomplete" : "function (_self, action)\n{\n if (action.type == 'setdata') {\n if(_this.data.target){\n _this.form.url = baseURL + _this.data.target;\n }\r\n // _this.dialog.el.mask(\"Loading\");\r\n // if(_this.data.id*1 > 0)\r\n // this.load({ method: 'GET', params: { '_id' : _this.data.id }});\r\n \r\n return;\r\n }\r\n if (action.type == 'load') {\r\n \r\n return;\r\n }\r\n if (action.type =='submit') {\r\n \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}", + "rendered" : "function (form)\n{\n _this.form= form;\n}" }, "$ url" : "baseURL", - "xtype" : "Form", "method" : "POST", + "xtype" : "Form", "style" : "margin:10px;", "$ xns" : "Roo.form", "items" : [ { "fieldLabel" : "URL", - "vtype" : "url", "xtype" : "TextField", + "vtype" : "url", "width" : 250, "$ xns" : "Roo.form", "name" : "importUrl"