Pman.Dialog.VerifyAccess.bjs
[Pman.Core] / Pman.Dialog.VerifyAccess.js
index 44c0f27..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') {
@@ -241,12 +249,6 @@ Roo.apply(Pman.Dialog.VerifyAccess.prototype, {
        },
        {
         xtype : 'Row',
-        listeners : {
-         render : function (_self)
-          {
-              _this.row_pwd_label = _self;
-          }
-        },
         xns : Roo.bootstrap,
         '|xns' : 'Roo.bootstrap',
         items  : [
@@ -262,6 +264,7 @@ Roo.apply(Pman.Dialog.VerifyAccess.prototype, {
             name : 'user_agent',
             readOnly : true,
             rows : 3,
+            style : 'margin-bottom: 15px;',
             xns : Roo.bootstrap,
             '|xns' : 'Roo.bootstrap'
            }
@@ -271,12 +274,6 @@ Roo.apply(Pman.Dialog.VerifyAccess.prototype, {
        },
        {
         xtype : 'Row',
-        listeners : {
-         render : function (_self)
-          {
-              _this.row_pwd_label = _self;
-          }
-        },
         xns : Roo.bootstrap,
         '|xns' : 'Roo.bootstrap',
         items  : [