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

matthew lon-capa-cvs@mail.lon-capa.org
Mon, 06 May 2002 21:57:11 -0000


matthew		Mon May  6 17:57:11 2002 EDT

  Modified files:              
    /loncom/interface	lonmenu.pm 
  Log:
  Javascript warning cleanup (undeclared variable) as part of cleanup for 
  BUG 385.
  
  
Index: loncom/interface/lonmenu.pm
diff -u loncom/interface/lonmenu.pm:1.19 loncom/interface/lonmenu.pm:1.20
--- loncom/interface/lonmenu.pm:1.19	Mon May  6 10:20:27 2002
+++ loncom/interface/lonmenu.pm	Mon May  6 17:57:11 2002
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Routines to control the menu
 #
-# $Id: lonmenu.pm,v 1.19 2002/05/06 14:20:27 matthew Exp $
+# $Id: lonmenu.pm,v 1.20 2002/05/06 21:57:11 matthew Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -49,7 +49,7 @@
 #}
     return(<<ENDOPEN);
 <script>
-menu=window.open("/res/adm/pages/menu.html","LONCAPAmenu",
+var menu=window.open("/res/adm/pages/menu.html","LONCAPAmenu",
 "height=350,width=150,scrollbars=no,menubar=no,top=5,left=5,screenX=5,screenY=5");
 </script>
 ENDOPEN
@@ -62,7 +62,7 @@
     my $openwin=&openmenu();
     return(<<ENDSMENU);
 <script>
-   swmenu=$openwin
+   var swmenu=$openwin
    swmenu.switchbutton($row,$col,"$imgsrc","$texttop","$textbot","$action");
 </script>
 ENDSMENU
@@ -107,7 +107,7 @@
 
 sub rawconfig {
     my $r = shift;
-    my $output="swmenu=".&openmenu();
+    my $output="var swmenu=".&openmenu();
     my $uname=$ENV{'user.name'};
     my $udom=$ENV{'user.domain'};
     my $adv=$ENV{'user.adv'};