[LON-CAPA-cvs] cvs: loncom /interface lonhtmlcommon.pm

raeburn lon-capa-cvs@mail.lon-capa.org
Mon, 19 Jul 2004 21:14:15 -0000


raeburn		Mon Jul 19 17:14:15 2004 EDT

  Modified files:              
    /loncom/interface	lonhtmlcommon.pm 
  Log:
  Fix bug #3218. In the breadcrumbs, a blue ? now appears adjacent to the green ? if inline help is available.
   
  
  
Index: loncom/interface/lonhtmlcommon.pm
diff -u loncom/interface/lonhtmlcommon.pm:1.82 loncom/interface/lonhtmlcommon.pm:1.83
--- loncom/interface/lonhtmlcommon.pm:1.82	Mon Jul 19 13:57:01 2004
+++ loncom/interface/lonhtmlcommon.pm	Mon Jul 19 17:14:15 2004
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # a pile of common html routines
 #
-# $Id: lonhtmlcommon.pm,v 1.82 2004/07/19 17:57:01 albertel Exp $
+# $Id: lonhtmlcommon.pm,v 1.83 2004/07/19 21:14:15 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -1068,6 +1068,10 @@
 #        if ($bug ne '') {
 #            $icons .= &Apache::loncommon::help_open_bug($bug);
 #        }
+        if (defined($component_help)) {
+            $icons .=
+                &Apache::loncommon::help_open_topic($component_help);
+        }
         $icons .= &Apache::loncommon::help_open_menu($color,$component,$component_help,$function,$faq,$bug);
         if ($icons ne '') {
             $Str .= $icons.' ';
@@ -1077,12 +1081,7 @@
         #
         if (defined($component)) {
             $Str .= '<td align="right" bgcolor="'.$color.'">'.
-                '<font size="+1">'.&mt($component).'</font>';
-            if (defined($component_help)) {
-                $Str .= 
-                    &Apache::loncommon::help_open_topic($component_help);
-            }
-            $Str.= '</td>';
+                '<font size="+1">'.&mt($component).'</font></td>';
         }
         $Str .= '</tr></table>'."\n";
         #