--- rat/client/parameter.html 2023/12/22 13:38:03 1.91 +++ 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.91 2023/12/22 13:38:03 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; iAllow 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('Add item'); + choicewrite('Add item'+"\n"); } - choicewrite(''); + choicewrite(''+"\n"); } if (pscat=='fileext') { tablestart('Allowed File Extensions'); @@ -1847,7 +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 if (pscat == 'tex') { sopt('texdisplay','TeX File Display'); } else { pscat = 'any'; } if (pscat != 'deeplink') { sopt('any','String Value'); } }