--- rat/client/parameter.html 2001/03/21 15:42:15 1.7 +++ rat/client/parameter.html 2001/07/25 03:10:15 1.9 @@ -3,7 +3,8 @@ The LearningOnline Network with CAPA Parameter Input Window 06/16/00,06/17,11/17,11/18,11/23,11/27,11/28,12/15,12/16, -03/21/01 Gerd Kortemeyer +03/21/01,03/24 Gerd Kortemeyer +07/24/01 Scott Harrison --> LON-CAPA @@ -477,8 +478,8 @@ function init() { if (pair[0]=='type') { subs=pair[1].split('_'); ptype=subs[0]; pscat=subs[1]; - if (subs[2]!=undefined) { pscat+='_'+subs[2]; } - if ((pscat=='') || (pscat==undefined)) { + if (typeof(subs[2])!="undefined") { pscat+='_'+subs[2]; } + if ((pscat=='') || (typeof(pscat)=="undefined")) { pscat='default'; } } @@ -491,12 +492,12 @@ function init() { svalue=pvalue; if (((ptype=='float') || (ptype=='string') || (ptype=='int')) && (pscat=='default') && - (svalue!=undefined) && (svalue!=0) && (svalue!='')) { pscat='any'; } + (typeof(svalue)!="undefined") && (svalue!=0) && (svalue!='')) { pscat='any'; } this.window.selector.document.clear(); selwrite(''); - selwrite('

'+pname+'

'); + selwrite(''+pname+'
'); selwrite('