[LON-CAPA-cvs] cvs: loncom /interface lonhelper.pm
albertel
lon-capa-cvs@mail.lon-capa.org
Mon, 17 Oct 2005 21:17:59 -0000
albertel Mon Oct 17 17:17:59 2005 EDT
Modified files:
/loncom/interface lonhelper.pm
Log:
- don't specify the target if we aren't using the remote
Index: loncom/interface/lonhelper.pm
diff -u loncom/interface/lonhelper.pm:1.126 loncom/interface/lonhelper.pm:1.127
--- loncom/interface/lonhelper.pm:1.126 Mon Oct 17 17:14:55 2005
+++ loncom/interface/lonhelper.pm Mon Oct 17 17:17:59 2005
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# .helper XML handler to implement the LON-CAPA helper
#
-# $Id: lonhelper.pm,v 1.126 2005/10/17 21:14:55 albertel Exp $
+# $Id: lonhelper.pm,v 1.127 2005/10/17 21:17:59 albertel Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -3361,8 +3361,11 @@
}
my $previous = HTML::Entities::encode(&mt("<- Previous"), '<>&"');
my $next = HTML::Entities::encode(&mt("Next ->"), '<>&"');
+ my $target = " target='loncapaclient'";
+ if (($env{'browser.interface'} eq 'textual') ||
+ ($env{'environment.remote'} eq 'off')) { $target=''; }
$result .= "<center>\n" .
- "<form action='".$actionURL."' method='post' target='loncapaclient'>\n" .
+ "<form action='".$actionURL."' method='post' $target>\n" .
"<input type='button' onclick='history.go(-1)' value='$previous' />" .
"<input type='hidden' name='orgurl' value='$targetURL' />" .
"<input type='hidden' name='selectrole' value='1' />\n" .