From 07f8e4fcf72a793478c7ab1c8155236835c3b2cc Mon Sep 17 00:00:00 2001 From: edward Date: Thu, 15 Feb 2018 12:59:37 +0800 Subject: [PATCH] Pman.Dialog.VerifyAccess.bjs Pman.Dialog.VerifyAccess.js --- Pman.Dialog.VerifyAccess.bjs | 2 +- Pman.Dialog.VerifyAccess.js | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Pman.Dialog.VerifyAccess.bjs b/Pman.Dialog.VerifyAccess.bjs index b566aec1..0da642dd 100644 --- a/Pman.Dialog.VerifyAccess.bjs +++ b/Pman.Dialog.VerifyAccess.bjs @@ -116,7 +116,7 @@ "items" : [ { "listeners" : { - "render" : "function (_self)\n{\n _this.expire_dt = this;\n \n this.setStartDate(new Date());\n \n this.el.setVisibilityMode(Roo.Element.DISPLAY);\n \n this.el.hide();\n}" + "render" : "function (_self)\n{\n _this.expire_dt = this;\n \n var d = new Date();\n d.setDate(d.getDate() - 1);\n\n this.setStartDate(d);\n \n this.el.setVisibilityMode(Roo.Element.DISPLAY);\n \n this.el.hide();\n}" }, "Boolean allowBlank" : false, "String name" : "expire_dt", diff --git a/Pman.Dialog.VerifyAccess.js b/Pman.Dialog.VerifyAccess.js index d24ed4eb..ef4056ac 100644 --- a/Pman.Dialog.VerifyAccess.js +++ b/Pman.Dialog.VerifyAccess.js @@ -271,7 +271,10 @@ Roo.apply(Pman.Dialog.VerifyAccess.prototype, { { _this.expire_dt = this; - this.setStartDate(new Date()); + var d = new Date(); + d.setDate(d.getDate() - 1); + + this.setStartDate(d); this.el.setVisibilityMode(Roo.Element.DISPLAY); -- 2.39.2