Pman.Dialog.VerifyAccess.bjs
[Pman.Core] / Pman.Dialog.VerifyAccess.js
index 325ea8e..59d3b96 100644 (file)
@@ -64,7 +64,11 @@ Roo.apply(Pman.Dialog.VerifyAccess.prototype, {
                   _to_data : 1
               }, 
               success : function(res) {
-                  _this.form.setValues(res.data);
+              
+                  _this.data = res.data;
+                  
+                  _this.form.setValues(_this.data);
+                  
                   return;
               },
               failure: function(res) {
@@ -173,6 +177,10 @@ Roo.apply(Pman.Dialog.VerifyAccess.prototype, {
             }
             if (action.type == 'load') {
                 
+                if(_this.data.status * 1 == 0){
+                    _this.form.findField('status').reset();
+                }
+                
                 return;
             }
             if (action.type =='submit') {