--- rat/client/parameter.html 2023/12/22 13:38:03 1.91 +++ rat/client/parameter.html 2025/06/26 01:28:48 1.94 @@ -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.94 2025/06/26 01:28:48 raeburn Exp $ // // Copyright Michigan State University Board of Trustees // @@ -642,26 +642,21 @@ 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'; + 'Remove'; frame.document.getElementById('LC_string_ipacc_inner_'+iptype).appendChild(ipDiv); } return false; } -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'); for (var j=0; j'); - choicewrite('Remove'); + choicewrite('Remove'); choicewrite(''); } choicewrite(''); @@ -1847,7 +1842,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'); } }