--- loncom/interface/courseclassifier.pm 2023/03/15 14:37:12 1.29 +++ loncom/interface/courseclassifier.pm 2025/02/24 23:41:39 1.31 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Utilities for classifying courses based on institutional code # -# $Id: courseclassifier.pm,v 1.29 2023/03/15 14:37:12 raeburn Exp $ +# $Id: courseclassifier.pm,v 1.31 2025/02/24 23:41:39 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -403,13 +403,21 @@ function toggleSecVis() { showlist = 'inline'; showbox = 'none'; } - alert("crscode is ||"+crscode+"|| and currcode is ||"+currcode+"|| and showlist is ||"+showlist+"|| and showbox is ||"+showbox+"||"); if (document.getElementById('LC_helpdesk_sectionlist')) { document.getElementById('LC_helpdesk_sectionlist').style.display = showlist; } if (document.getElementById('LC_helpdesk_section')) { document.getElementById('LC_helpdesk_section').style.display = showbox; } + if (document.getElementById('section')) { + document.getElementById('section').id = 'wasinuse'; + } + if (document.getElementById('notinuse') { + document.getElementById('notinuse').id = 'section'; + } + if (document.getElementById('wasinuse') { + document.getElementById('wasinuse').id = 'notinuse'; + } return; }