[LON-CAPA-cvs] cvs: loncom(version_2_8_X) /homework grades.pm

raeburn raeburn@source.lon-capa.org
Wed, 10 Dec 2008 21:30:39 -0000


raeburn		Wed Dec 10 21:30:39 2008 EDT

  Modified files:              (Branch: version_2_8_X)
    /loncom/homework	grades.pm 
  Log:
  - Backport 1.532.
  
  
Index: loncom/homework/grades.pm
diff -u loncom/homework/grades.pm:1.528 loncom/homework/grades.pm:1.528.2.1
--- loncom/homework/grades.pm:1.528	Mon Jul 14 10:28:19 2008
+++ loncom/homework/grades.pm	Wed Dec 10 21:30:38 2008
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # The LON-CAPA Grading handler
 #
-# $Id: grades.pm,v 1.528 2008/07/14 10:28:19 raeburn Exp $
+# $Id: grades.pm,v 1.528.2.1 2008/12/10 21:30:38 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -1681,7 +1681,7 @@
 
     my $radio.='<table border="0"><tr>'."\n";  # display radio buttons in a nice table 10 across
     while ($thisweight<=$wgt) {
-	$radio.= '<td><span style="white-space: nowrap;"><label><input type="radio" name="RADVAL'.$counter.'_'.$partid.'" '.
+	$radio.= '<td><span class="LC_nobreak"><label><input type="radio" name="RADVAL'.$counter.'_'.$partid.'" '.
 	    'onclick="javascript:writeBox(this.form,\''.$counter.'_'.$partid.'\','.
 	    $thisweight.')" value="'.$thisweight.'" '.
 	    ($score eq $thisweight ? 'checked="checked"':'').' /> '.$thisweight."</label></span></td>\n";
@@ -4985,11 +4985,11 @@
 =cut
 
 sub scantron_CODEunique {
-    my $result='<span style="white-space: nowrap;">
+    my $result='<span class="LC_nobreak">
                  <label><input type="radio" name="scantron_CODEunique"
                         value="yes" checked="checked" />'.&mt('Yes').' </label>
                 </span>
-                <span style="white-space: nowrap;">
+                <span class="LC_nobreak">
                  <label><input type="radio" name="scantron_CODEunique"
                         value="no" />'.&mt('No').' </label>
                 </span>';