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

albertel lon-capa-cvs@mail.lon-capa.org
Mon, 31 Jan 2005 19:24:03 -0000


albertel		Mon Jan 31 14:24:03 2005 EDT

  Modified files:              
    /loncom/interface	lonmenu.pm lonremote.pm 
  Log:
  - environment.remote shouldn't be tested for on it should always be testif it is set or not set to off (beacuse a user starts out with no preference which is interepreted as 'on')
  
  
Index: loncom/interface/lonmenu.pm
diff -u loncom/interface/lonmenu.pm:1.141 loncom/interface/lonmenu.pm:1.142
--- loncom/interface/lonmenu.pm:1.141	Mon Jan 31 14:20:47 2005
+++ loncom/interface/lonmenu.pm	Mon Jan 31 14:24:02 2005
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Routines to control the menu
 #
-# $Id: lonmenu.pm,v 1.141 2005/01/31 19:20:47 albertel Exp $
+# $Id: lonmenu.pm,v 1.142 2005/01/31 19:24:02 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -1147,7 +1147,7 @@
     $tabbg=&Apache::loncommon::designparm($function.'.tabbg',$domain);
     $font=&Apache::loncommon::designparm($function.'.font',$domain);
     my $script_tag;
-    if ($ENV{'environment.remote'} eq 'on') {
+    if ($ENV{'environment.remote'} ne 'off') {
         my $utility=&utilityfunctions('/adm/menu');
         $script_tag=(<<ENDSCRIPT);
 <script type="text/javascript">
Index: loncom/interface/lonremote.pm
diff -u loncom/interface/lonremote.pm:1.15 loncom/interface/lonremote.pm:1.16
--- loncom/interface/lonremote.pm:1.15	Fri Oct 29 16:44:30 2004
+++ loncom/interface/lonremote.pm	Mon Jan 31 14:24:02 2005
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # User Authentication Module
 #
-# $Id: lonremote.pm,v 1.15 2004/10/29 20:44:30 raeburn Exp $
+# $Id: lonremote.pm,v 1.16 2005/01/31 19:24:02 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -95,7 +95,7 @@
     &Apache::loncommon::get_unprocessed_cgi($ENV{'QUERY_STRING'},
                                             ['action','url']);
     unless ($ENV{'form.action'}) {
-	if ($ENV{'environment.remote'} eq 'on') {
+	if ($ENV{'environment.remote'} ne 'off') {
 	    $ENV{'form.action'}='collapse';
         } else {
 	    $ENV{'form.action'}='launch';