DataObjects/Core_domain.php
[Pman.Core] / Pman.Dialog.CoreImportUrl.js
index 90efd5d..60b45f9 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
@@ -80,7 +83,7 @@ Pman.Dialog.CoreImportUrl = {
                             },
                             method : 'POST',
                             style : 'margin:10px;',
-                            url : baseURL + '/Crm/ImportHtml.php',
+                            url : baseURL,
                             items : [
                                 {
                                     xtype: 'TextField',