Pman.Dialog.CoreCompanies.bjs
[Pman.Core] / Pman.Dialog.CoreCompanies.js
index 6bb0572..5b9e39c 100644 (file)
@@ -100,13 +100,26 @@ Pman.Dialog.CoreCompanies = {
       listeners : {
        click : function (_self, e)
         {
-            // do some checks?
-            
             if(!_this.form.isValid()){
                 Roo.MessageBox.alert('Error', 'Please Correct all the errors in red');
                 return;
             }
             
+            new Pman.Request({
+                url : baseURL + '/Roo/Core_enum.php',
+                method : 'POST',
+                params : {
+                  id : _this.form.findField('id').getValue() * 1,
+                  name : _this.form.findField('name').getValue(),
+                  _check_name : 1
+                }, 
+                success : function(res) {
+                    Roo.log(res);
+                }
+            });
+            
+            return;
+            
             _this.dialog.el.mask("Saving");
             _this.form.doAction("submit");