--- rat/lonpageflip.pm 2023/01/20 23:34:08 1.80.8.13.2.3 +++ rat/lonpageflip.pm 2025/02/07 20:57:39 1.80.8.13.2.4 @@ -2,7 +2,7 @@ # # Page flip handler # -# $Id: lonpageflip.pm,v 1.80.8.13.2.3 2023/01/20 23:34:08 raeburn Exp $ +# $Id: lonpageflip.pm,v 1.80.8.13.2.4 2025/02/07 20:57:39 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -524,7 +524,7 @@ sub handler { } else { $furl=&Apache::lonnet::absolute_url().$furl; } - if ($reinitcheck eq 'update') { + if (($reinitcheck eq 'main') || ($reinitcheck eq 'both')) { &Apache::lonhtmlcommon::Close_PrgWin($r,\%prog_state); $r->print(&reinited_js($furl,$env{'request.course.id'},100)); $r->print(&Apache::loncommon::end_page()); @@ -566,7 +566,7 @@ sub handler { } else { $newloc=&Apache::lonnet::absolute_url().$newloc } - if ($reinitcheck eq 'update') { + if (($reinitcheck eq 'main') || ($reinitcheck eq 'both')) { $r->print(&reinited_js($newloc,$env{'request.course.id'},100)); $r->print(&Apache::loncommon::end_page()); return OK; @@ -593,7 +593,7 @@ sub handler { } else { my $newloc = &Apache::lonnet::absolute_url(). '/adm/navmaps'; - if ($reinitcheck eq 'update') { + if (($reinitcheck eq 'main') || ($reinitcheck eq 'both')) { &Apache::lonhtmlcommon::Close_PrgWin($r,\%prog_state); $r->print(&reinited_js($newloc,$env{'request.course.id'},100)); $r->print(&Apache::loncommon::end_page()); @@ -708,7 +708,7 @@ sub handler { $url .= $anchor; } } - if ($reinitcheck eq 'update') { + if (($reinitcheck eq 'main') || ($reinitcheck eq 'both')) { &Apache::lonhtmlcommon::Close_PrgWin($r,\%prog_state); $r->print(&reinited_js($url,$env{'request.course.id'},100)); $r->print(&Apache::loncommon::end_page()); @@ -822,7 +822,7 @@ ENDSTART } } else { # ------------------------------------------------- Problem, could not tie hash - if ($reinitcheck eq 'update') { + if (($reinitcheck eq 'main') || ($reinitcheck eq 'both')) { &Apache::lonhtmlcommon::Close_PrgWin($r,\%prog_state); $r->print(&Apache::loncommon::end_page()); } @@ -832,7 +832,7 @@ ENDSTART } else { # ---------------------------------------- No, could not determine where we are my $newloc = '/adm/ambiguous'; - if ($reinitcheck eq 'update') { + if (($reinitcheck eq 'main') || ($reinitcheck eq 'both')) { &Apache::lonhtmlcommon::Close_PrgWin($r,\%prog_state); $r->print(&reinited_js($newloc,$env{'request.course.id'},100)); $r->print(&Apache::loncommon::end_page());