[LON-CAPA-cvs] cvs: loncom /interface lonconfigsettings.pm

raeburn raeburn at source.lon-capa.org
Sat Mar 12 18:03:09 EST 2022


raeburn		Sat Mar 12 23:03:09 2022 EDT

  Modified files:              
    /loncom/interface	lonconfigsettings.pm 
  Log:
  - Bug 6907
    Uncheck "Visible input?" checkboxes on form submission. 
  
  
Index: loncom/interface/lonconfigsettings.pm
diff -u loncom/interface/lonconfigsettings.pm:1.62 loncom/interface/lonconfigsettings.pm:1.63
--- loncom/interface/lonconfigsettings.pm:1.62	Sat Mar 12 21:24:17 2022
+++ loncom/interface/lonconfigsettings.pm	Sat Mar 12 23:03:09 2022
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Handler to set domain-wide configuration settings
 #
-# $Id: lonconfigsettings.pm,v 1.62 2022/03/12 21:24:17 raeburn Exp $
+# $Id: lonconfigsettings.pm,v 1.63 2022/03/12 23:03:09 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -180,6 +180,7 @@
                             }
                             $linkprot_check .= <<ENDJS;
 if (posscheck) {
+    uncheckLinkProtMakeVis('visible','$num');
     document.display.elements['linkprot_secret_$num'].type = 'password';
 }
 
@@ -198,6 +199,7 @@
 ENDJS
                             }
                             $linkprot_check .= <<ENDJS;
+uncheckLinkProtMakeVis('visible','$num');
 document.display.elements['linkprot_secret_$num'].type = 'password';
 
 ENDJS
@@ -209,12 +211,13 @@
                         $linkprot_check .= <<ENDJS
 secretinput = document.display.elements['linkprot_secret_add'].value;
 if (document.display.elements['linkprot_add'].checked) {
-    $intargjs      
+    $intargjs
 }
 
 ENDJS
                     }
                     $linkprot_check .= <<ENDJS;
+uncheckLinkProtMakeVis('visible','add');
 document.display.elements['linkprot_secret_add'].type = 'password';
 
 ENDJS




More information about the LON-CAPA-cvs mailing list