Diff for /loncom/interface/lonnavdisplay.pm between versions 1.44 and 1.45

version 1.44, 2024/10/14 01:34:57 version 1.45, 2025/02/07 20:46:01
Line 129  ENDCLOSE Line 129  ENDCLOSE
     my $course_type = &Apache::loncommon::course_type();      my $course_type = &Apache::loncommon::course_type();
     if (($course_type eq 'Placement') && (!$env{'request.role.adv'})) {       if (($course_type eq 'Placement') && (!$env{'request.role.adv'})) { 
         my $furl = &Apache::lonpageflip::first_accessible_resource();          my $furl = &Apache::lonpageflip::first_accessible_resource();
         if ($result eq 'update') {          if (($result eq 'main') || ($result eq 'both')) {
             &Apache::lonhtmlcommon::Close_PrgWin($r,\%prog_state);              &Apache::lonhtmlcommon::Close_PrgWin($r,\%prog_state);
             $r->print($closure.&Apache::loncommon::end_page());              $r->print($closure.&Apache::loncommon::end_page());
             return OK;              return OK;
Line 160  ENDCLOSE Line 160  ENDCLOSE
     my $navmap = Apache::lonnavmaps::navmap->new();      my $navmap = Apache::lonnavmaps::navmap->new();
   
     if (!defined($navmap)) {      if (!defined($navmap)) {
         if ($result eq 'update') {          if (($result eq 'main') || ($result eq 'both')) {
             &Apache::lonhtmlcommon::Close_PrgWin($r,\%prog_state);              &Apache::lonhtmlcommon::Close_PrgWin($r,\%prog_state);
             $r->print($closure.&Apache::loncommon::end_page());              $r->print($closure.&Apache::loncommon::end_page());
         }          }
Line 170  ENDCLOSE Line 170  ENDCLOSE
         return HTTP_NOT_ACCEPTABLE;          return HTTP_NOT_ACCEPTABLE;
     }      }
   
     if ($result eq 'update') {      if (($result eq 'main') || ($result eq 'both')) {
         $r->rflush();          $r->rflush();
         &Apache::lonhtmlcommon::Close_PrgWin($r,\%prog_state);          &Apache::lonhtmlcommon::Close_PrgWin($r,\%prog_state);
         $r->print($closure);          $r->print($closure);
Line 183  ENDCLOSE Line 183  ENDCLOSE
     }      }
   
     &startContentScreen($r,'navmaps',$course_type);      &startContentScreen($r,'navmaps',$course_type);
     unless ($result eq 'update') {      unless (($result eq 'main') || ($result eq 'both')) {
         $r->rflush();          $r->rflush();
     }      }
   

Removed from v.1.44  
changed lines
  Added in v.1.45


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