community-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From humbed...@apache.org
Subject svn commit: r1864093 - in /comdev/reporter.apache.org/trunk/site/wizard/js: source/generators.js wizard.js
Date Wed, 31 Jul 2019 18:43:09 GMT
Author: humbedooh
Date: Wed Jul 31 18:43:08 2019
New Revision: 1864093

URL: http://svn.apache.org/viewvc?rev=1864093&view=rev
Log:
encapsulate with <ul> to not mess up design

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=1864093&r1=1864092&r2=1864093&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 Wed Jul 31 18:43:08
2019
@@ -205,7 +205,7 @@ function check_compile(data) {
         }
     }
     if (text.length > 0) {
-        text = "<h5>Errors found while compiling report:</h5>" + text + "<p><br/>Please
correct these sections before compiling your final report!<br/>For now, you can save
the data you have entered so far as a draft, and come back later to finish things up.</p>"
+        text = "<h5>Errors found while compiling report:</h5><ul>" + text
+ "</ul><p><br/>Please correct these sections before compiling your final
report!<br/>For now, you can save the data you have entered so far as a draft, and come
back later to finish things up.</p>"
         compile_okay = false;
     } else {
         text = "That's it, your board report compiled a-okay and is potentially ready for
submission! If you'd like more time to work on it, you can save it as a draft, and return
later to make some final edits. Or you can publish it to the agenda via Whimsy.";

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=1864093&r1=1864092&r2=1864093&view=diff
==============================================================================
--- comdev/reporter.apache.org/trunk/site/wizard/js/wizard.js (original)
+++ comdev/reporter.apache.org/trunk/site/wizard/js/wizard.js Wed Jul 31 18:43:08 2019
@@ -986,13 +986,15 @@ function showCalendarPicker(parent, seed
  Fetched from source/generators.js
 ******************************************/
 
-
+// Least common multiple
 let lcm = (x, y) => (!x || !y) ? 0 : Math.abs((x * y) / gcd(x, y));
+
+// Greatest common divisor
 let gcd = (x,y) => {
   x = Math.abs(x);
   y = Math.abs(y);
-  while(y) {
-    var t = y;
+  while (y) {
+    let t = y;
     y = x % y;
     x = t;
   }
@@ -1191,7 +1193,7 @@ function check_compile(data) {
         }
     }
     if (text.length > 0) {
-        text = "<h5>Errors found while compiling report:</h5>" + text + "<p><br/>Please
correct these sections before compiling your final report!<br/>For now, you can save
the data you have entered so far as a draft, and come back later to finish things up.</p>"
+        text = "<h5>Errors found while compiling report:</h5><ul>" + text
+ "</ul><p><br/>Please correct these sections before compiling your final
report!<br/>For now, you can save the data you have entered so far as a draft, and come
back later to finish things up.</p>"
         compile_okay = false;
     } else {
         text = "That's it, your board report compiled a-okay and is potentially ready for
submission! If you'd like more time to work on it, you can save it as a draft, and return
later to make some final edits. Or you can publish it to the agenda via Whimsy.";



Mime
View raw message