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

www lon-capa-cvs@mail.lon-capa.org
Fri, 18 Apr 2003 01:00:47 -0000


www		Thu Apr 17 21:00:47 2003 EDT

  Modified files:              
    /loncom/interface	lonmenu.pm 
  Log:
  Framed Remote now works cross-browser (and, yes, Mozilla was right: if you
  do <a href="javascript:..." target="_top"> it tries to execute the Javascript
  in the main Navigator window).
  
  
Index: loncom/interface/lonmenu.pm
diff -u loncom/interface/lonmenu.pm:1.62 loncom/interface/lonmenu.pm:1.63
--- loncom/interface/lonmenu.pm:1.62	Thu Apr 17 20:02:34 2003
+++ loncom/interface/lonmenu.pm	Thu Apr 17 21:00:46 2003
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Routines to control the menu
 #
-# $Id: lonmenu.pm,v 1.62 2003/04/18 00:02:34 www Exp $
+# $Id: lonmenu.pm,v 1.63 2003/04/18 01:00:46 www Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -590,7 +590,7 @@
        my $text=$top.' '.$bot;
        $text=~s/\- //;
        $inlineremote[10*$row+$col]="\n".($nobreak?' ':'<br />').
-        '<a href="javascript:'.$act.';" target="_top">'.$text.'</a> '.
+        '<a href="javascript:'.$act.';">'.$text.'</a> '.
         ($nobreak?'':$desc);
    } else {
 # Inline Remote
@@ -600,7 +600,7 @@
        $inlineremote[10*$row+$col]="\n".
          ($nobreak==3?'<td width="50%" colspan="2" align="right"':'<tr><td').
          ' bgcolor="'.$tabbg.'"'.($nobreak==1?' width="50%" colspan="2"':'').
-     '"><a href="javascript:'.$act.';" target="_top"><font color="'.$font.'"'.
+     '"><a href="javascript:'.$act.';"><font color="'.$font.'"'.
           ($nobreak?' size="+1"':'').
      '>'.$text.'</font></a></td>'.
      ($nobreak?'':'<td colspan="3" width="80%"><font color="'.$font.'" size="-1">'.$desc.'</font>').($nobreak!=1?'</tr>':'');