From: edward Date: Thu, 15 Feb 2018 04:59:37 +0000 (+0800) Subject: Pman.Dialog.VerifyAccess.bjs X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=commitdiff_plain;h=07f8e4fcf72a793478c7ab1c8155236835c3b2cc Pman.Dialog.VerifyAccess.bjs Pman.Dialog.VerifyAccess.js --- 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);