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 2019/08/01 05:31:48 UTC
svn commit: r1864116 - in /comdev/reporter.apache.org/trunk/site/wizard/js:
source/generators.js wizard.js
Author: humbedooh
Date: Thu Aug 1 05:31:48 2019
New Revision: 1864116
URL: http://svn.apache.org/viewvc?rev=1864116&view=rev
Log:
tweak test
Modified:
comdev/reporter.apache.org/trunk/site/wizard/js/source/generators.js
comdev/reporter.apache.org/trunk/site/wizard/js/wizard.js
Modified: comdev/reporter.apache.org/trunk/site/wizard/js/source/generators.js
URL: http://svn.apache.org/viewvc/comdev/reporter.apache.org/trunk/site/wizard/js/source/generators.js?rev=1864116&r1=1864115&r2=1864116&view=diff
==============================================================================
--- comdev/reporter.apache.org/trunk/site/wizard/js/source/generators.js (original)
+++ comdev/reporter.apache.org/trunk/site/wizard/js/source/generators.js Thu Aug 1 05:31:48 2019
@@ -117,7 +117,7 @@ function generate_meta(data) {
// Previous comments of note?
let cdates = Object.keys(comments.comments);
cdates.sort();
- if (comments && cdates) {
+ if (comments && cdates.length > 0) {
txt += "<hr/><h6>Last report comments from the board: </h6>";
txt += "<b>%s:</b><br/><pre>%s</pre>".format(cdates[cdates.length-1], comments.comments[cdates[cdates.length-1]]);
}
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=1864116&r1=1864115&r2=1864116&view=diff
==============================================================================
--- comdev/reporter.apache.org/trunk/site/wizard/js/wizard.js (original)
+++ comdev/reporter.apache.org/trunk/site/wizard/js/wizard.js Thu Aug 1 05:31:48 2019
@@ -1105,7 +1105,7 @@ function generate_meta(data) {
// Previous comments of note?
let cdates = Object.keys(comments.comments);
cdates.sort();
- if (comments && cdates) {
+ if (comments && cdates.length > 0) {
txt += "<hr/><h6>Last report comments from the board: </h6>";
txt += "<b>%s:</b><br/><pre>%s</pre>".format(cdates[cdates.length-1], comments.comments[cdates[cdates.length-1]]);
}