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

albertel lon-capa-cvs-allow@mail.lon-capa.org
Fri, 02 Nov 2007 21:20:24 -0000


albertel		Fri Nov  2 17:20:24 2007 EDT

  Modified files:              
    /rat/client	parameter.html 
  Log:
  - BUG#5495, don't let the setting of a timelimit not be of a date_interval type
  
  
Index: rat/client/parameter.html
diff -u rat/client/parameter.html:1.47 rat/client/parameter.html:1.48
--- rat/client/parameter.html:1.47	Tue Oct 16 20:27:19 2007
+++ rat/client/parameter.html	Fri Nov  2 17:20:19 2007
@@ -3,7 +3,7 @@
 The LearningOnline Network with CAPA
 Parameter Input Window
 //
-// $Id: parameter.html,v 1.47 2007/10/17 00:27:19 albertel Exp $
+// $Id: parameter.html,v 1.48 2007/11/02 21:20:19 albertel Exp $
 //
 // Copyright Michigan State University Board of Trustees
 //
@@ -817,11 +817,14 @@
   }
 
   if (ptype=='date') {
-     sopt('default','Default');
-     sopt('start','Starting Date');
-     sopt('end','Ending Date');
-     sopt('interval','Time Interval');
-     
+     if (pscat != 'interval') {
+         sopt('default','Default');
+	 sopt('start','Starting Date');
+	 sopt('end','Ending Date');
+     } else {
+         sopt('interval','Time Interval');
+     }
+
      if ((pvalue!='') && (typeof(pvalue)!="undefined")) {
         cdate.setTime(pvalue*1000);
      } else {