[prev in list] [next in list] [prev in thread] [next in thread]
List: lon-capa-cvs
Subject: [LON-CAPA-cvs] cvs: loncom(BZ4492) /homework radiobuttonresponse.pm
From: foxr <foxr () source ! lon-capa ! org>
Date: 2012-01-25 12:00:33
Message-ID: cvsfoxr1327492833 () cvsserver
[Download RAW message or body]
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 {
_______________________________________________
LON-CAPA-cvs mailing list
LON-CAPA-cvs@mail.lon-capa.org
http://mail.lon-capa.org/mailman/listinfo/lon-capa-cvs
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic