--- rat/client/parameter.html 2004/11/10 20:32:19 1.29
+++ rat/client/parameter.html 2005/06/14 02:33:18 1.31
@@ -3,7 +3,7 @@
The LearningOnline Network with CAPA
Parameter Input Window
//
-// $Id: parameter.html,v 1.29 2004/11/10 20:32:19 www Exp $
+// $Id: parameter.html,v 1.31 2005/06/14 02:33:18 www Exp $
//
// Copyright Michigan State University Board of Trustees
//
@@ -42,6 +42,10 @@ var pscat='';
var pmarker='';
var pname='';
+var defhour=0;
+var defmin=0;
+var defsec=0;
+
var svalue;
var stype;
var smarker;
@@ -726,6 +730,9 @@ function init() {
if (pair[0]=='call') { pcode=pair[1]; }
if (pair[0]=='marker') { pmarker=pair[1]; }
if (pair[0]=='name') { pname=pair[1]; }
+ if (pair[0]=='defhour') { defhour=pair[1]; }
+ if (pair[0]=='defmin') { defmin=pair[1]; }
+ if (pair[0]=='defsec') { defsec=pair[1]; }
}
svalue=pvalue;
@@ -770,6 +777,10 @@ function init() {
if ((pvalue!='') && (typeof(pvalue)!="undefined")) {
cdate.setTime(pvalue*1000);
+ } else {
+ cdate.setSeconds(defsec);
+ cdate.setMinutes(defmin);
+ cdate.setHours(defhour);
}
months[0]='January';