From 5ec1d21f311aa44e8eae0b4c91a3f3833f49b85e Mon Sep 17 00:00:00 2001 From: Edward Date: Wed, 19 Feb 2014 13:11:45 +0800 Subject: [PATCH] Pman.Dialog.CoreImportUrl.bjs Pman.Dialog.CoreImportUrl.js --- Pman.Dialog.CoreImportUrl.bjs | 2 +- Pman.Dialog.CoreImportUrl.js | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Pman.Dialog.CoreImportUrl.bjs b/Pman.Dialog.CoreImportUrl.bjs index 25de4d64..d57fb8b4 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') {\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 e03fe15e..e7cf7152 100644 --- a/Pman.Dialog.CoreImportUrl.js +++ b/Pman.Dialog.CoreImportUrl.js @@ -50,7 +50,10 @@ Pman.Dialog.CoreImportUrl = { listeners : { actioncomplete : function (_self, action) { - if (action.type == 'setdata') { + if (action.type == 'setdata') { + if(!_this.data.target){ + _this.form.url = baseURL + _this.data.target; + } // _this.dialog.el.mask("Loading"); // if(_this.data.id*1 > 0) // this.load({ method: 'GET', params: { '_id' : _this.data.id }}); -- 2.39.2