Pman.Dialog.CoreImportUrl.bjs
authorEdward <edward@roojs.com>
Wed, 19 Feb 2014 05:11:45 +0000 (13:11 +0800)
committerEdward <edward@roojs.com>
Wed, 19 Feb 2014 05:11:45 +0000 (13:11 +0800)
Pman.Dialog.CoreImportUrl.js

Pman.Dialog.CoreImportUrl.bjs
Pman.Dialog.CoreImportUrl.js

index 25de4d6..d57fb8b 100644 (file)
@@ -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",
index e03fe15..e7cf715 100644 (file)
@@ -50,7 +50,10 @@ Pman.Dialog.CoreImportUrl = {
                             listeners : {
                                 actioncomplete : function (_self, action)
                                 {
-                                     if (action.type == 'setdata') {\r
+                                     if (action.type == 'setdata') {
+                                        if(!_this.data.target){
+                                            _this.form.url = baseURL + _this.data.target;
+                                        }\r
                                        // _this.dialog.el.mask("Loading");\r
                                        // if(_this.data.id*1 > 0)\r
                                        //     this.load({ method: 'GET', params: { '_id' : _this.data.id }});\r