--- loncom/interface/loncommon.pm 2023/11/19 21:28:17 1.1421 +++ loncom/interface/loncommon.pm 2023/11/28 17:53:15 1.1424 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # a pile of common routines # -# $Id: loncommon.pm,v 1.1421 2023/11/19 21:28:17 raeburn Exp $ +# $Id: loncommon.pm,v 1.1424 2023/11/28 17:53:15 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -1372,7 +1372,7 @@ sub helpLatexCheatsheet { $out .= '' .&help_open_topic('Authoring_Output_Tags',&mt('Output Tags'),$stayOnPage,undef,600) .' ' - .&help_open_topic('Authoring_Multilingual_Problems',&mt('How to create problems in different languages'),$stayOnPage,undef,600) + .&help_open_topic('Authoring_Multilingual_Problems',&mt('Languages'),$stayOnPage,undef,600) .''; } $out .= ''; # End cheatsheet @@ -2501,7 +2501,7 @@ sub iframe_wrapper_resizejs { if (\$('div.LC_menus_content:first').length) { if (\$('div.LC_menus_content:first').hasClass ("shown")) { header = \$('div.LC_menus_content:first'); - offset = 9; + offset = 12; } } else if (\$('div.LC_head_subbox:first').length) { header = \$('div.LC_head_subbox:first'); @@ -6590,7 +6590,7 @@ sub nocodemirror { =item * &permitted_editors() -Input: None +Input: $uri (optional) Returns: %editors hash in which keys are editors permitted in current Authoring Space. @@ -6605,6 +6605,7 @@ Returns: %editors hash in which keys are =cut sub permitted_editors { + my ($uri) = @_; my ($is_author,$is_coauthor,$auname,$audom,%editors); if ($env{'request.role'} =~ m{^au\./}) { $is_author = 1; @@ -6623,6 +6624,9 @@ sub permitted_editors { ($audom,$auname) = ($1,$2); } elsif ($env{'request.uri'} =~ m{^/priv/($match_domain)/($match_username)/}) { ($audom,$auname) = ($1,$2); + } elsif (($uri eq '/daxesave') && + ($env{'form.path'} =~ m{^/daxeopen/priv/($match_domain)/($match_username)/})) { + ($audom,$auname) = ($1,$2); } if (($audom ne '') && ($auname ne '')) { if (($env{'user.domain'} eq $audom) && @@ -6883,7 +6887,7 @@ sub bodytag { $bodytag .= Apache::lonhtmlcommon::scripttag( Apache::lonmenu::utilityfunctions($httphost), 'start'); - if ($args->{'collapsible_header'}) { + if ($args->{'collapsible_header'} ne '') { my $alttext = &mt('menu state: collapsed'); my $tooltip = &mt('display standard menus'); $bodytag .= <<"END"; @@ -6956,8 +6960,9 @@ END $bodytag .= '
'; $bodytag .= Apache::lonhtmlcommon::scripttag('', 'end'); } - if ($args->{'collapsible_header'}) { - $bodytag .= '
'. + if ($args->{'collapsible_header'} ne '') { + $bodytag .= $args->{'collapsible_header'}. + '
'. ''; } return $bodytag;