Pman.Dialog.CoreCompanies.bjs
[Pman.Core] / Pman.Dialog.CoreCompanies.js
index 23e871a..949437f 100644 (file)
@@ -106,7 +106,7 @@ Pman.Dialog.CoreCompanies = {
             }
             
             new Pman.Request({
-                url : baseURL + '/Roo/Core_enum.php',
+                url : baseURL + '/Roo/Core_company.php',
                 method : 'POST',
                 params : {
                   id : _this.form.findField('id').getValue() * 1,
@@ -114,15 +114,16 @@ Pman.Dialog.CoreCompanies = {
                   _check_name : 1
                 }, 
                 success : function(res) {
-                    
+                    _this.dialog.el.mask("Saving");
+                    _this.form.doAction("submit");
+                },
+                failure : function(res) {
+                    Roo.log(res);
                 }
             });
             
             return;
             
-            _this.dialog.el.mask("Saving");
-            _this.form.doAction("submit");
-        
         }
       },
       xns : Roo,