[LON-CAPA-cvs] cvs: loncom(BZ4492) /homework radiobuttonresponse.pm
foxr
foxr at source.lon-capa.org
Wed Jan 25 07:00:33 EST 2012
foxr Wed Jan 25 12:00:33 2012 EDT
Modified files: (Branch: BZ4492)
/loncom/homework radiobuttonresponse.pm
Log:
Clean up errors in survey rendeing..still need to support horiztonal rendering
in survey mode which will be preceded by radical refactoring of displayallfoils.
Index: loncom/homework/radiobuttonresponse.pm
diff -u loncom/homework/radiobuttonresponse.pm:1.153.6.6 loncom/homework/radiobuttonresponse.pm:1.153.6.7
--- loncom/homework/radiobuttonresponse.pm:1.153.6.6 Wed Jan 25 11:37:32 2012
+++ loncom/homework/radiobuttonresponse.pm Wed Jan 25 12:00:33 2012
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# mutliple choice style responses
#
-# $Id: radiobuttonresponse.pm,v 1.153.6.6 2012/01/25 11:37:32 foxr Exp $
+# $Id: radiobuttonresponse.pm,v 1.153.6.7 2012/01/25 12:00:33 foxr Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -449,7 +449,9 @@
$lastresponse =
$Apache::lonhomework::history{"resource.$part.$id.submission"};
}
- if ( $direction eq 'horizontal' ) { $result .= '<table><tr>'; }
+ if ( $direction eq 'horizontal' && $target ne 'tex') {
+ $result .= '<table><tr>';
+ }
my %lastresponse = &Apache::lonnet::str2hash($lastresponse);
if ($showanswer) {
foreach my $name (@names) {
@@ -488,7 +490,7 @@
foreach my $name (@names) {
if ( $Apache::response::foilgroup{ $name . '.value' } ne 'unused' )
{
- if ( $direction eq 'horizontal' ) {
+ if ( $direction eq 'horizontal' && $target ne 'tex' ) {
$result .= "<td>";
}
else {
More information about the LON-CAPA-cvs
mailing list