--- rat/client/parameter.html 2025/06/28 14:35:11 1.96
+++ rat/client/parameter.html 2025/06/30 20:29:06 1.97
@@ -5,7 +5,7 @@
The LearningOnline Network with CAPA
Parameter Input Window
//
-// $Id: parameter.html,v 1.96 2025/06/28 14:35:11 raeburn Exp $
+// $Id: parameter.html,v 1.97 2025/06/30 20:29:06 raeburn Exp $
//
// Copyright Michigan State University Board of Trustees
//
@@ -328,10 +328,34 @@ function intsecond(secs) {
}
result += '';
return result;
-}
+}
+
+function intweek(weeks) {
+ var thisweek;
+ if ((typeof weeks === 'number') && (!isNaN(weeks))) {
+ thisweek=weeks;
+ }
+ var i;
+ var result ='';
+ var funcname = '';
+ if (pscat == 'grace') {
+ funcname = 'parent.gracestringeval()';
+ }
+ result += '';
+ return result;
+}
function intday(days) {
var thisdate;
+ var maxallowed;
if ((typeof days === 'number') && (!isNaN(days))) {
thisdate=days;
} else {
@@ -342,11 +366,13 @@ function intday(days) {
var funcname = '';
if (pscat == 'grace') {
funcname = 'parent.gracestringeval()';
+ maxallowed = 6;
} else {
funcname = 'parent.intcalc()';
+ maxallowed = 31;
}
result += '