You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@community.apache.org by hu...@apache.org on 2020/01/08 18:49:47 UTC
svn commit: r1872512 - in /comdev/reporter.apache.org/trunk/site/wizard/js:
source/reportdate.js wizard.js
Author: humbedooh
Date: Wed Jan 8 18:49:47 2020
New Revision: 1872512
URL: http://svn.apache.org/viewvc?rev=1872512&view=rev
Log:
fix equality bug
Modified:
comdev/reporter.apache.org/trunk/site/wizard/js/source/reportdate.js
comdev/reporter.apache.org/trunk/site/wizard/js/wizard.js
Modified: comdev/reporter.apache.org/trunk/site/wizard/js/source/reportdate.js
URL: http://svn.apache.org/viewvc/comdev/reporter.apache.org/trunk/site/wizard/js/source/reportdate.js?rev=1872512&r1=1872511&r2=1872512&view=diff
==============================================================================
--- comdev/reporter.apache.org/trunk/site/wizard/js/source/reportdate.js (original)
+++ comdev/reporter.apache.org/trunk/site/wizard/js/source/reportdate.js Wed Jan 8 18:49:47 2020
@@ -97,7 +97,7 @@ function getReportDate(json, pmc, dateOn
let xdate = new Date(+nextdate); // copy so as to not decrement multiple times
xdate.setDate(xdate.getDate() - 7); // Due one week prior to meeting.
let rightnow = new Date();
- if (xdate < rightnow) {
+ if (xdate <= rightnow) {
if (pdata && pdata.filed[pmc] == true) return new HTML('span', {style: { color: '#396'}}, xdate.toDateString() + " (Report filed)");
return new HTML('span', {style: { color: '#711'}}, xdate.toDateString() + " (Report is due)");
}
Modified: comdev/reporter.apache.org/trunk/site/wizard/js/wizard.js
URL: http://svn.apache.org/viewvc/comdev/reporter.apache.org/trunk/site/wizard/js/wizard.js?rev=1872512&r1=1872511&r2=1872512&view=diff
==============================================================================
--- comdev/reporter.apache.org/trunk/site/wizard/js/wizard.js (original)
+++ comdev/reporter.apache.org/trunk/site/wizard/js/wizard.js Wed Jan 8 18:49:47 2020
@@ -1996,7 +1996,7 @@ function getReportDate(json, pmc, dateOn
let xdate = new Date(+nextdate); // copy so as to not decrement multiple times
xdate.setDate(xdate.getDate() - 7); // Due one week prior to meeting.
let rightnow = new Date();
- if (xdate < rightnow) {
+ if (xdate <= rightnow) {
if (pdata && pdata.filed[pmc] == true) return new HTML('span', {style: { color: '#396'}}, xdate.toDateString() + " (Report filed)");
return new HTML('span', {style: { color: '#711'}}, xdate.toDateString() + " (Report is due)");
}