From a7a16f5dd67ab345fd7a582f9d8a7cba142c2540 Mon Sep 17 00:00:00 2001 From: Edward Date: Wed, 19 Feb 2014 13:44:54 +0800 Subject: [PATCH] Pman.Dialog.CoreImportUrl.bjs Pman.Dialog.CoreImportUrl.js --- Pman.Dialog.CoreImportUrl.bjs | 2 +- Pman.Dialog.CoreImportUrl.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Pman.Dialog.CoreImportUrl.bjs b/Pman.Dialog.CoreImportUrl.bjs index d57fb8b4..3e874c22 100644 --- a/Pman.Dialog.CoreImportUrl.bjs +++ b/Pman.Dialog.CoreImportUrl.bjs @@ -29,7 +29,7 @@ "items": [ { "listeners": { - "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}" }, "method": "POST", diff --git a/Pman.Dialog.CoreImportUrl.js b/Pman.Dialog.CoreImportUrl.js index e7cf7152..60b45f99 100644 --- a/Pman.Dialog.CoreImportUrl.js +++ b/Pman.Dialog.CoreImportUrl.js @@ -51,7 +51,7 @@ Pman.Dialog.CoreImportUrl = { actioncomplete : function (_self, action) { if (action.type == 'setdata') { - if(!_this.data.target){ + if(_this.data.target){ _this.form.url = baseURL + _this.data.target; } // _this.dialog.el.mask("Loading"); -- 2.39.2