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

albertel lon-capa-cvs@mail.lon-capa.org
Fri, 03 Dec 2004 22:10:39 -0000


albertel		Fri Dec  3 17:10:39 2004 EDT

  Modified files:              
    /loncom/interface	lonmenu.pm 
  Log:
  - construct space doesn't need to register the currect url, um ever
  
  
  
Index: loncom/interface/lonmenu.pm
diff -u loncom/interface/lonmenu.pm:1.134 loncom/interface/lonmenu.pm:1.135
--- loncom/interface/lonmenu.pm:1.134	Fri Dec  3 01:51:50 2004
+++ loncom/interface/lonmenu.pm	Fri Dec  3 17:10:39 2004
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Routines to control the menu
 #
-# $Id: lonmenu.pm,v 1.134 2004/12/03 06:51:50 raeburn Exp $
+# $Id: lonmenu.pm,v 1.135 2004/12/03 22:10:39 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -551,12 +551,14 @@
 }
 
 sub loadevents() {
-    if ($ENV{'request.noversionuri'} eq '/res/adm/pages/menu.html') { return ''; }
+    if ($ENV{'request.state'} eq 'construct' ||
+	$ENV{'request.noversionuri'} eq '/res/adm/pages/menu.html') { return ''; }
     return 'LONCAPAreg();';
 }
 
 sub unloadevents() {
-    if ($ENV{'request.noversionuri'} eq '/res/adm/pages/menu.html') { return ''; }
+    if ($ENV{'request.state'} eq 'construct' ||
+	$ENV{'request.noversionuri'} eq '/res/adm/pages/menu.html') { return ''; }
     return 'LONCAPAstale();';
 }