[LON-CAPA-cvs] cvs: loncom /homework grades.pm
albertel
lon-capa-cvs@mail.lon-capa.org
Thu, 04 Mar 2004 14:09:47 -0000
albertel Thu Mar 4 09:09:47 2004 EDT
Modified files:
/loncom/homework grades.pm
Log:
- makes grading problems with many possible points look prettier.
Index: loncom/homework/grades.pm
diff -u loncom/homework/grades.pm:1.178 loncom/homework/grades.pm:1.179
--- loncom/homework/grades.pm:1.178 Tue Feb 24 19:31:57 2004
+++ loncom/homework/grades.pm Thu Mar 4 09:09:47 2004
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# The LON-CAPA Grading handler
#
-# $Id: grades.pm,v 1.178 2004/02/25 00:31:57 albertel Exp $
+# $Id: grades.pm,v 1.179 2004/03/04 14:09:47 albertel Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -1295,10 +1295,10 @@
my $ctr = 0;
$result.='<table border="0"><tr>'."\n"; # display radio buttons in a nice table 10 across
while ($ctr<=$wgt) {
- $result.= '<td><input type="radio" name="RADVAL'.$counter.'_'.$partid.'" '.
+ $result.= '<td><nobr><input type="radio" name="RADVAL'.$counter.'_'.$partid.'" '.
'onclick="javascript:writeBox(this.form,\''.$counter.'_'.$partid.'\','.
$ctr.')" value="'.$ctr.'" '.
- ($score eq $ctr ? 'checked':'').' /> '.$ctr."</td>\n";
+ ($score eq $ctr ? 'checked':'').' /> '.$ctr."</nobr></td>\n";
$result.=(($ctr+1)%10 == 0 ? '</tr><tr>' : '');
$ctr++;
}