--- loncom/homework/structuretags.pm 2007/09/25 23:16:13 1.400
+++ loncom/homework/structuretags.pm 2007/10/17 00:22:51 1.405
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# definition of tags that give a structure to a document
#
-# $Id: structuretags.pm,v 1.400 2007/09/25 23:16:13 albertel Exp $
+# $Id: structuretags.pm,v 1.405 2007/10/17 00:22:51 albertel Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -104,9 +104,9 @@ function image_response_click (which, e)
init_geometry();
if (!e) { e = window.event; } //IE
var input_element = document.lonhomework.elements[which];
- var token_element = document.lonhomework.elements['token_'+which];
+ var token_element = document.lonhomework.elements[which+'_token'];
var token = token_element.value;
- var img_element = document.getElementById('imageresponse_'+which);
+ var img_element = document.getElementById(which+'_imageresponse');
var x= e.clientX-getX(img_element)+Geometry.getHorizontalScroll();
var y= e.clientY-getY(img_element)+Geometry.getVerticalScroll();
var click = x+':'+y;
@@ -158,7 +158,9 @@ sub page_start {
} elsif (!defined($found{'body'})
&& $env{'request.state'} eq 'construct') {
if ($target eq 'web' || $target eq 'edit') {
- # no extra args to bodytag
+ if ($env{'environment.remote'} ne 'off') {
+ $body_args{'only_body'} = 1;
+ }
}
} elsif (!defined($found{'body'})) {
my %add_entries;
@@ -358,7 +360,7 @@ sub problem_web_to_edit_header {
if (!$Apache::lonhomework::parsing_a_task) {
$result.="
-Problem Status:
+".&mt("Problem Status:")."
-Problem Type:
+".&mt("Problem Type:")."
-Feedback Mode:
+".&mt("Feedback Mode:")."
@@ -399,7 +402,7 @@ Feedback Mode:
} elsif ($Apache::lonhomework::parsing_a_task) {
$result.="
-Problem Status:
+".&mt("Problem Status:")."