Author: sebb
Date: Thu Jun 19 11:01:04 2025
New Revision: 1926582

URL: http://svn.apache.org/viewvc?rev=1926582&view=rev
Log:
Fix indentation

Modified:
    comdev/reporter.apache.org/trunk/site/js/addrelease.js

Modified: comdev/reporter.apache.org/trunk/site/js/addrelease.js
URL: 
http://svn.apache.org/viewvc/comdev/reporter.apache.org/trunk/site/js/addrelease.js?rev=1926582&r1=1926581&r2=1926582&view=diff
==============================================================================
--- comdev/reporter.apache.org/trunk/site/js/addrelease.js (original)
+++ comdev/reporter.apache.org/trunk/site/js/addrelease.js Thu Jun 19 11:01:04 
2025
@@ -1,21 +1,21 @@
 // location may have appended ;yyyy for debugging purposes
 // limit param can be passed as query param in URL to limit # of releases 
written to the page
 // This URL-handling section could use clean-up
- var srch = document.location.search.substr(1).split(';'); // drop ? from the 
search and split at semicolon
- var committee = srch[0].split('&')[0]; // before the semi (if any) and amp 
(if any)
- var baseyear = 1999;
- if (srch.length > 1) {
-     baseyear = parseInt(srch[1]); // grab trailing start year
-     if (isNaN(baseyear) || baseyear < 1970) {
-         baseyear=1999; // ensure sensible default value
-     }
- }
- document.getElementById('committee').value = committee;
- var xdate = document.getElementById('xdate');
- var done = false;
- xdate.defaultValue = new Date().toISOString().substring(0, 10)
+var srch = document.location.search.substr(1).split(';'); // drop ? from the 
search and split at semicolon
+var committee = srch[0].split('&')[0]; // before the semi (if any) and amp (if 
any)
+var baseyear = 1999;
+if (srch.length > 1) {
+    baseyear = parseInt(srch[1]); // grab trailing start year
+    if (isNaN(baseyear) || baseyear < 1970) {
+        baseyear=1999; // ensure sensible default value
+    }
+}
+document.getElementById('committee').value = committee;
+var xdate = document.getElementById('xdate');
+var done = false;
+xdate.defaultValue = new Date().toISOString().substring(0, 10)
  
- function validate(form) {
+function validate(form) {
   var x = document.getElementById('xdate').value.split("-");
   // ensure UTC date is used!
   var nn = Date.UTC(x[0],parseInt(x[1])-1,parseInt(x[2]))/1000;
@@ -30,14 +30,14 @@
     return false
   }
   return true
- }
+}
  
- function Release(version, date) {
-   this.version = version;
-   this.date = date;
- }
+function Release(version, date) {
+  this.version = version;
+  this.date = date;
+}
 
- function listReleaseData(json, a,b) {
+function listReleaseData(json, a,b) {
   if (done) {
     return;
   }
@@ -70,5 +70,4 @@
     }
   }
   document.getElementById('committee').value = committee;
- }
-
+}


Reply via email to