Pman.Dialog.VerifyAccess.bjs
authoredward <edward@roojs.com>
Thu, 15 Feb 2018 04:58:19 +0000 (12:58 +0800)
committeredward <edward@roojs.com>
Thu, 15 Feb 2018 04:58:19 +0000 (12:58 +0800)
Pman.Dialog.VerifyAccess.js

Pman.Dialog.VerifyAccess.bjs
Pman.Dialog.VerifyAccess.js

index 62a1e11..5431e44 100644 (file)
@@ -79,7 +79,7 @@
          "items" : [
           {
            "listeners" : {
-            "select" : "function (combo, record, index)\n{\n    \n}"
+            "select" : "function (combo, record, index)\n{\n    _this.expire_dt.allowBlank = true;\n    _this.expire_dt.el.hide();\n    \n    if(record.data.code == '-2'){\n        _this.expire_dt.allowBlank = false;\n        _this.expire_dt.el.show();\n    }\n}"
            },
            "Boolean allowBlank" : false,
            "Boolean selectOnFocus" : true,
index dddace3..b55492a 100644 (file)
@@ -228,7 +228,13 @@ Roo.apply(Pman.Dialog.VerifyAccess.prototype, {
             listeners : {
              select : function (combo, record, index)
               {
+                  _this.expire_dt.allowBlank = true;
+                  _this.expire_dt.el.hide();
                   
+                  if(record.data.code == '-2'){
+                      _this.expire_dt.allowBlank = false;
+                      _this.expire_dt.el.show();
+                  }
               }
             },
             xns : Roo.bootstrap,