--- loncom/interface/courseprefs.pm 2022/02/21 16:11:18 1.49.2.28.2.6 +++ loncom/interface/courseprefs.pm 2022/03/12 23:17:55 1.49.2.28.2.7 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Handler to set configuration settings for a course # -# $Id: courseprefs.pm,v 1.49.2.28.2.6 2022/02/21 16:11:18 raeburn Exp $ +# $Id: courseprefs.pm,v 1.49.2.28.2.7 2022/03/12 23:17:55 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -2731,6 +2731,16 @@ function toggleLinkProtReqUser(form,item } return; } + +function uncheckLinkProtMakeVis(item,num) { + if (document.getElementById('linkprot_'+item+'_'+num)) { + var currtype = document.getElementById('linkprot_'+item+'_'+num).type; + if (currtype.toLowerCase() == 'checkbox') { + document.getElementById('linkprot_'+item+'_'+num).checked = false; + } + } + return; +} ENDSCRIPT } @@ -5386,13 +5396,13 @@ sub print_linkprotection { '  '; } else { $datatable .= ''.$desc{'secret'}.':'. ''. - ''. + ''. ''; } } @@ -5444,7 +5454,7 @@ sub print_linkprotection { $datatable .= ''.$desc{'key'}.': '."\n". (' 'x2). ''.$desc{'secret'}.':'. - ' '."\n"; + ' '."\n"; } if ($ltiauth) { $datatable .= ''.