[LON-CAPA-cvs] cvs: loncom(version_2_10_X) /interface lonhelper.pm

raeburn raeburn@source.lon-capa.org
Sat, 14 Aug 2010 20:19:42 -0000


raeburn		Sat Aug 14 20:19:42 2010 EDT

  Modified files:              (Branch: version_2_10_X)
    /loncom/interface	lonhelper.pm 
  Log:
  - For 2.10 reverse 1.179, remote control retained in 2.10.
  
  
Index: loncom/interface/lonhelper.pm
diff -u loncom/interface/lonhelper.pm:1.180 loncom/interface/lonhelper.pm:1.180.2.1
--- loncom/interface/lonhelper.pm:1.180	Mon May 24 09:21:18 2010
+++ loncom/interface/lonhelper.pm	Sat Aug 14 20:19:42 2010
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # .helper XML handler to implement the LON-CAPA helper
 #
-# $Id: lonhelper.pm,v 1.180 2010/05/24 09:21:18 foxr Exp $
+# $Id: lonhelper.pm,v 1.180.2.1 2010/08/14 20:19:42 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -3679,8 +3679,10 @@
     }
     my $previous = HTML::Entities::encode(&mt("Back"), '<>&"');
     my $next = HTML::Entities::encode(&mt("Next"), '<>&"');
+    my $target = " target='loncapaclient'";
+    if ($env{'environment.remote'} eq 'off') {  $target='';  }
     $result .= "<p>\n" .
-	"<form action='".$actionURL."' method='post' >\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" .