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

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

index b566aec..0da642d 100644 (file)
          "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",
index d24ed4e..ef4056a 100644 (file)
@@ -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);