Diff for /loncom/interface/loncommon.pm between versions 1.1421 and 1.1423

version 1.1421, 2023/11/19 21:28:17 version 1.1423, 2023/11/27 23:24:05
Line 2501  sub iframe_wrapper_resizejs { Line 2501  sub iframe_wrapper_resizejs {
             if (\$('div.LC_menus_content:first').length) {              if (\$('div.LC_menus_content:first').length) {
                 if (\$('div.LC_menus_content:first').hasClass ("shown")) {                  if (\$('div.LC_menus_content:first').hasClass ("shown")) {
                     header = \$('div.LC_menus_content:first');                      header = \$('div.LC_menus_content:first');
                     offset = 9;                      offset = 12;
                 }                  }
             } else if (\$('div.LC_head_subbox:first').length) {              } else if (\$('div.LC_head_subbox:first').length) {
                 header = \$('div.LC_head_subbox:first');                  header = \$('div.LC_head_subbox:first');
Line 6590  sub nocodemirror { Line 6590  sub nocodemirror {
   
 =item * &permitted_editors()  =item * &permitted_editors()
   
 Input: None  Input: $uri (optional)
   
 Returns: %editors hash in which keys are editors  Returns: %editors hash in which keys are editors
          permitted in current Authoring Space.           permitted in current Authoring Space.
Line 6605  Returns: %editors hash in which keys are Line 6605  Returns: %editors hash in which keys are
 =cut  =cut
   
 sub permitted_editors {  sub permitted_editors {
       my ($uri) = @_;
     my ($is_author,$is_coauthor,$auname,$audom,%editors);      my ($is_author,$is_coauthor,$auname,$audom,%editors);
     if ($env{'request.role'} =~ m{^au\./}) {      if ($env{'request.role'} =~ m{^au\./}) {
         $is_author = 1;          $is_author = 1;
Line 6623  sub permitted_editors { Line 6624  sub permitted_editors {
             ($audom,$auname) = ($1,$2);              ($audom,$auname) = ($1,$2);
         } elsif ($env{'request.uri'} =~ m{^/priv/($match_domain)/($match_username)/}) {          } elsif ($env{'request.uri'} =~ m{^/priv/($match_domain)/($match_username)/}) {
             ($audom,$auname) = ($1,$2);              ($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 (($audom ne '') && ($auname ne '')) {
             if (($env{'user.domain'} eq $audom) &&              if (($env{'user.domain'} eq $audom) &&
Line 6883  sub bodytag { Line 6887  sub bodytag {
         $bodytag .= Apache::lonhtmlcommon::scripttag(          $bodytag .= Apache::lonhtmlcommon::scripttag(
             Apache::lonmenu::utilityfunctions($httphost), 'start');              Apache::lonmenu::utilityfunctions($httphost), 'start');
   
         if ($args->{'collapsible_header'}) {          if ($args->{'collapsible_header'} ne '') {
             my $alttext = &mt('menu state: collapsed');              my $alttext = &mt('menu state: collapsed');
             my $tooltip = &mt('display standard menus');              my $tooltip = &mt('display standard menus');
             $bodytag .= <<"END";              $bodytag .= <<"END";
Line 6956  END Line 6960  END
             $bodytag .= '<hr style="clear:both" />';              $bodytag .= '<hr style="clear:both" />';
             $bodytag .= Apache::lonhtmlcommon::scripttag('', 'end');               $bodytag .= Apache::lonhtmlcommon::scripttag('', 'end'); 
         }          }
         if ($args->{'collapsible_header'}) {          if ($args->{'collapsible_header'} ne '') {
             $bodytag .= '<div id="LC_collapsible_separator"></div>'.              $bodytag .= $args->{'collapsible_header'}.
                           '<div id="LC_collapsible_separator"></div>'.
                         '</div></div>';                          '</div></div>';
         }          }
         return $bodytag;          return $bodytag;

Removed from v.1.1421  
changed lines
  Added in v.1.1423


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>