community-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1689701 - /comdev/reporter.apache.org/branches/deployed/site/addrelease.html
Date Tue, 07 Jul 2015 15:42:57 GMT
Author: sebb
Date: Tue Jul  7 15:42:57 2015
New Revision: 1689701

URL: http://svn.apache.org/r1689701
Log:
IsNan checking does not seem to work very well, so skip unless field provided

Modified:
    comdev/reporter.apache.org/branches/deployed/site/addrelease.html

Modified: comdev/reporter.apache.org/branches/deployed/site/addrelease.html
URL: http://svn.apache.org/viewvc/comdev/reporter.apache.org/branches/deployed/site/addrelease.html?rev=1689701&r1=1689700&r2=1689701&view=diff
==============================================================================
--- comdev/reporter.apache.org/branches/deployed/site/addrelease.html (original)
+++ comdev/reporter.apache.org/branches/deployed/site/addrelease.html Tue Jul  7 15:42:57
2015
@@ -41,9 +41,12 @@
     // location may have appended ;yyyy for debugging purposes
      var srch = document.location.search.substr(1).split(';'); // drop ? from the search
and split at semicolon
      var committee = srch[0]; // before the semi (if any)
-     var baseyear = parseInt(srch[1]); // grab trailing start year
-     if (isNan(baseyear) || baseyear < 1970) {
-         baseyear=1999; // ensure sensible default value
+     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 date = new Date();



Mime
View raw message