[LON-CAPA-cvs] cvs: rat / lonpage.pm

raeburn raeburn at source.lon-capa.org
Tue Feb 18 17:28:42 EST 2020


raeburn		Tue Feb 18 22:28:42 2020 EDT

  Modified files:              
    /rat	lonpage.pm 
  Log:
  - Call &clear_breadcrumb_tools() even if a countdown timer will not be shown,
    to support code added in lonmenu.pm rev. 1.436.
  
  
Index: rat/lonpage.pm
diff -u rat/lonpage.pm:1.132 rat/lonpage.pm:1.133
--- rat/lonpage.pm:1.132	Mon Feb 17 23:32:03 2020
+++ rat/lonpage.pm	Tue Feb 18 22:28:41 2020
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Page Handler
 #
-# $Id: lonpage.pm,v 1.132 2020/02/17 23:32:03 raeburn Exp $
+# $Id: lonpage.pm,v 1.133 2020/02/18 22:28:41 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -643,6 +643,7 @@
                                             '// ]]>'.
                                             "\n</script>\n";
                           }
+                          &Apache::lonhtmlcommon::clear_breadcrumb_tools();
                           if (keys(%hastimeleft)) {
                               my (%uniquetimes,%uniquedisplays);
                               foreach my $item (values(%hastimeleft)) {
@@ -1064,7 +1065,6 @@
 <span id="ddcountexpand" class="LC_menubuttons_inline_text" >$expand</span>
 <img src="/res/adm/pages/timer.png" title="$desc" class="LC_icon" alt="$alttxt" /><span class="LC_menubuttons_inline_text">$title</span></a>
 END
-    &Apache::lonhtmlcommon::clear_breadcrumb_tools();
     &Apache::lonhtmlcommon::add_breadcrumb_tool('tools',$output);
     return;
 }




More information about the LON-CAPA-cvs mailing list