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

bowersj2 lon-capa-cvs@mail.lon-capa.org
Wed, 16 Jul 2003 14:21:56 -0000


bowersj2		Wed Jul 16 10:21:56 2003 EDT

  Modified files:              
    /loncom/interface	loncommon.pm 
  Log:
  If the remote has been collapsed, display help in the same window as the 
  current screen.
  
  This is a little bit experiemental; if you don't like it just flip it
  back and I won't complain at all.
  
  
Index: loncom/interface/loncommon.pm
diff -u loncom/interface/loncommon.pm:1.107 loncom/interface/loncommon.pm:1.108
--- loncom/interface/loncommon.pm:1.107	Tue Jun 24 18:16:32 2003
+++ loncom/interface/loncommon.pm	Wed Jul 16 10:21:56 2003
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # a pile of common routines
 #
-# $Id: loncommon.pm,v 1.107 2003/06/24 22:16:32 albertel Exp $
+# $Id: loncommon.pm,v 1.108 2003/07/16 14:21:56 bowersj2 Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -549,7 +549,8 @@
     my ($topic, $text, $stayOnPage, $width, $height) = @_;
     $text = "" if (not defined $text);
     $stayOnPage = 0 if (not defined $stayOnPage);
-    if ($ENV{'browser.interface'} eq 'textual') {
+    if ($ENV{'browser.interface'} eq 'textual' ||
+	$ENV{'environment.remote'} eq 'off' ) {
 	$stayOnPage=1;
     }
     $width = 350 if (not defined $width);