--- loncom/interface/loncreateuser.pm 2023/11/17 17:02:20 1.474 +++ loncom/interface/loncreateuser.pm 2024/02/29 16:28:35 1.476 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Create a user # -# $Id: loncreateuser.pm,v 1.474 2023/11/17 17:02:20 raeburn Exp $ +# $Id: loncreateuser.pm,v 1.476 2024/02/29 16:28:35 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -245,10 +245,15 @@ function toggleCustom(form,item,name) { if (radioname) { if (radioname.length > 0) { var setvis; + var RegExp = /^customtext_(aboutme|blog|portfolio|portaccess|timezone|webdav)\$/; for (var i=0; i "Personal User Blog", 'aboutme' => "Personal Information Page", @@ -337,7 +342,7 @@ sub build_tools_display { } foreach my $item (@usertools) { my ($custom_access,$curr_access,$cust_on,$cust_off,$tool_on,$tool_off, - $currdisp,$custdisp,$custradio,$onclick); + $currdisp,$custdisp,$custradio,$onclick,$customsty,$editorsty); $cust_off = 'checked="checked" '; $tool_on = 'checked="checked" '; unless (($context eq 'authordefaults') && ($item ne 'webdav')) { @@ -476,16 +481,14 @@ sub build_tools_display { ' '."\n". &Apache::loncommon::start_data_table_row()."\n"; if (($context eq 'requestcourses') || ($context eq 'requestauthor')) { - my ($curroption,$currlimit,$customsty); + my ($curroption,$currlimit); my $envkey = $context.'.'.$item; if ($context eq 'requestauthor') { $envkey = $context; } if ($userenv{$envkey} ne '') { $curroption = $userenv{$envkey}; - $customsty = ' style="display:block"'; } else { - $customsty = ' style="display:none"'; my (@inststatuses); if ($context eq 'requestcourses') { $curroption =