You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@community.apache.org by se...@apache.org on 2015/07/07 17:42:57 UTC
svn commit: r1689701 -
/comdev/reporter.apache.org/branches/deployed/site/addrelease.html
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();