--- loncom/interface/lonnavdisplay.pm 2024/08/20 00:05:44 1.22.4.10.2.4 +++ loncom/interface/lonnavdisplay.pm 2025/02/07 20:58:59 1.22.4.10.2.5 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Navigate Maps Display Handler # -# $Id: lonnavdisplay.pm,v 1.22.4.10.2.4 2024/08/20 00:05:44 raeburn Exp $ +# $Id: lonnavdisplay.pm,v 1.22.4.10.2.5 2025/02/07 20:58:59 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -129,7 +129,7 @@ ENDCLOSE my $navmap = Apache::lonnavmaps::navmap->new(); if (!defined($navmap)) { - if ($result eq 'update') { + if (($result eq 'main') || ($result eq 'both')) { &Apache::lonhtmlcommon::Close_PrgWin($r,\%prog_state); $r->print($closure.&Apache::loncommon::end_page()); } @@ -139,7 +139,7 @@ ENDCLOSE return HTTP_NOT_ACCEPTABLE; } - if ($result eq 'update') { + if (($result eq 'main') || ($result eq 'both')) { $r->rflush(); &Apache::lonhtmlcommon::Close_PrgWin($r,\%prog_state); $r->print($closure); @@ -152,7 +152,7 @@ ENDCLOSE } &startContentScreen($r,'navmaps'); - unless ($result eq 'update') { + unless (($result eq 'main') || ($result eq 'both')) { $r->rflush(); }