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

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

index d57fb8b..3e874c2 100644 (file)
@@ -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",
index e7cf715..60b45f9 100644 (file)
@@ -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;
                                         }\r
                                        // _this.dialog.el.mask("Loading");\r