--- rat/client/parameter.html 2012/03/13 05:37:55 1.64 +++ rat/client/parameter.html 2015/09/13 21:48:37 1.68 @@ -5,7 +5,7 @@ The LearningOnline Network with CAPA Parameter Input Window // -// $Id: parameter.html,v 1.64 2012/03/13 05:37:55 raeburn Exp $ +// $Id: parameter.html,v 1.68 2015/09/13 21:48:37 raeburn Exp $ // // Copyright Michigan State University Board of Trustees // @@ -39,6 +39,7 @@ Parameter Input Window var ptype=''; var pvalue=''; +var pmodval=''; var preturn=''; var pcode=''; var pscat=''; @@ -301,7 +302,25 @@ function intcalc() { sform.hours.options[sform.hours.selectedIndex].value*1)*60+ sform.minutes.options[sform.minutes.selectedIndex].value*1)*60+ sform.seconds.options[sform.seconds.selectedIndex].value*1; - draw(); + if ((ptype=='date') && (pscat=='interval')) { + var newpmodval = ''; + if (sform.donebutton.length) { + for (var i=0; i'); - } else { + choicewrite('secs'); + choicewrite(''); + tablestart('Provide a "Done" button to students?'); + choicewrite('Value:'); + choicewrite(' Yes'); + choicewrite(' No'); + choicewrite(''); + } else { choicewrite('' +cdate.toString()+ 'Date:'); @@ -631,7 +664,7 @@ function draw() { choicewrite(' Exam'); + choicewrite(' /> Bubblesheet Exam'); // choicewrite('= 0 && pair[1] < 60) { defsec=pair[1]; } } + if (ptype=='date' && pscat == 'interval') { + if (doneRegExp.test(pvalue)) { + var pnumval = pvalue.replace(doneRegExp,''); + pmodval = pvalue.match(doneRegExp); + pvalue = pnumval; + } + } svalue=pvalue; if (((ptype=='float') || (ptype=='string') || (ptype=='int')) && (pscat=='default') && @@ -900,7 +941,7 @@ function init() { selwrite(''); selwrite(''); selwrite(''+pname+''); - selwrite(''); + selwrite('Format of Value(s): '); if (ptype=='tolerance') { sopt('default','Default');