[LON-CAPA-cvs] cvs: rat /client parameter.html

albertel lon-capa-cvs@mail.lon-capa.org
Thu, 07 Jul 2005 19:00:33 -0000


albertel		Thu Jul  7 15:00:33 2005 EDT

  Modified files:              
    /rat/client	parameter.html 
  Log:
  - BUG#4200, when no current date, year lister would show now years
  
  
Index: rat/client/parameter.html
diff -u rat/client/parameter.html:1.32 rat/client/parameter.html:1.33
--- rat/client/parameter.html:1.32	Mon Jun 20 15:52:51 2005
+++ rat/client/parameter.html	Thu Jul  7 15:00:31 2005
@@ -3,7 +3,7 @@
 The LearningOnline Network with CAPA
 Parameter Input Window
 //
-// $Id: parameter.html,v 1.32 2005/06/20 19:52:51 albertel Exp $
+// $Id: parameter.html,v 1.33 2005/07/07 19:00:31 albertel Exp $
 //
 // Copyright Michigan State University Board of Trustees
 //
@@ -176,6 +176,7 @@
    var thisyear=cdate.getFullYear();
    var nowdate=new Date();
    var nowyear=nowdate.getFullYear();
+   if ( !thisyear ) { thisyear=nowyear; }
    var loweryear=thisyear-2;
    var upperyear=thisyear+5;
    if (thisyear>nowyear) { loweryear=nowyear-2; }