--- rat/client/parameter.html 2022/07/07 03:37:02 1.90 +++ rat/client/parameter.html 2025/06/28 13:55:43 1.95 @@ -5,7 +5,7 @@ The LearningOnline Network with CAPA Parameter Input Window // -// $Id: parameter.html,v 1.90 2022/07/07 03:37:02 raeburn Exp $ +// $Id: parameter.html,v 1.95 2025/06/28 13:55:43 raeburn Exp $ // // Copyright Michigan State University Board of Trustees // @@ -642,27 +642,25 @@ function addIpRule(iptype) { var frame = window.frames["choices"]; if (frame.document.getElementById('LC_string_ipacc_inner_'+iptype)) { var innerDiv = frame.document.getElementById('LC_string_ipacc_inner_'+iptype); - var count = innerDiv.childNodes.length var ipDiv = frame.document.createElement('div'); - ipDiv.innerHTML = ''+ - 'Remove'; - frame.document.getElementById('LC_string_ipacc_inner_'+iptype).appendChild(ipDiv); + ipDiv.innerHTML = ''+"\n"+ + 'Remove'; + innerDiv.appendChild(ipDiv); } - return false; + return; } -function removeIpRule(iptype,num) { +function removeIpRule(caller,iptype) { var frame = window.frames["choices"]; if (frame.document.getElementById('LC_string_ipacc_inner_'+iptype)) { var innerDiv = frame.document.getElementById('LC_string_ipacc_inner_'+iptype); - for (var i=0; i No
'); } + if (pscat=='tex') { + tablestart('TeX file display'); + choicewrite('Value:'); + choicewrite('
'); + choicewrite('
'); + } if (pscat=='ip') { var currallow = new Array; var currdeny = new Array; @@ -1170,20 +1180,20 @@ function draw() { } var curripaccess = [currallow,currdeny]; tablestart('IP Number/Name'); - choicewrite('Allow fromDeny from'); + choicewrite('Allow fromDeny from'+"\n"); var acctypes = ['allow','deny']; for (var i=0; i'+ - '
'+ - '
'); + choicewrite(['', + '
', + '
'].join("\n")); for (var j=0; j'); - choicewrite('Remove'); - choicewrite('
'); + choicewrite(['
', + 'Remove', + '
'].join("\n")); } - choicewrite('
'); + choicewrite('
'+"\n"); } - choicewrite('
'); + choicewrite(''+"\n"); } if (pscat=='fileext') { tablestart('Allowed File Extensions'); @@ -1835,6 +1845,7 @@ function init() { else if (pscat == 'fileext') { sopt('fileext','File Extension'); } else if (pscat == 'useslots') { sopt('useslots','Slots control access'); } else if (pscat == 'deeplink') { sopt('deeplink','Deep-linked items'); } + else if (pscat == 'tex') { sopt('texdisplay','TeX File Display'); } else { pscat = 'any'; } if (pscat != 'deeplink') { sopt('any','String Value'); } }