From 68b92bfa791ec38cd3065479f331fe4b568202e3 Mon Sep 17 00:00:00 2001 From: edward Date: Thu, 15 Feb 2018 12:58:19 +0800 Subject: [PATCH] Pman.Dialog.VerifyAccess.bjs Pman.Dialog.VerifyAccess.js --- Pman.Dialog.VerifyAccess.bjs | 2 +- Pman.Dialog.VerifyAccess.js | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/Pman.Dialog.VerifyAccess.bjs b/Pman.Dialog.VerifyAccess.bjs index 62a1e11c..5431e44f 100644 --- a/Pman.Dialog.VerifyAccess.bjs +++ b/Pman.Dialog.VerifyAccess.bjs @@ -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, diff --git a/Pman.Dialog.VerifyAccess.js b/Pman.Dialog.VerifyAccess.js index dddace3d..b55492a9 100644 --- a/Pman.Dialog.VerifyAccess.js +++ b/Pman.Dialog.VerifyAccess.js @@ -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, -- 2.39.2