[LON-CAPA-cvs] cvs: loncom(version_2_11_X) /interface/statistics lonstudentassessment.pm

raeburn raeburn at source.lon-capa.org
Sat May 11 17:39:31 EDT 2013


raeburn		Sat May 11 21:39:31 2013 EDT

  Modified files:              (Branch: version_2_11_X)
    /loncom/interface/statistics	lonstudentassessment.pm 
  Log:
  - For 2.11
    - Backport 1.172.
  
  
Index: loncom/interface/statistics/lonstudentassessment.pm
diff -u loncom/interface/statistics/lonstudentassessment.pm:1.169.2.3 loncom/interface/statistics/lonstudentassessment.pm:1.169.2.4
--- loncom/interface/statistics/lonstudentassessment.pm:1.169.2.3	Thu Feb 21 21:56:09 2013
+++ loncom/interface/statistics/lonstudentassessment.pm	Sat May 11 21:39:31 2013
@@ -1,6 +1,6 @@
 # The LearningOnline Network with CAPA
 #
-# $Id: lonstudentassessment.pm,v 1.169.2.3 2013/02/21 21:56:09 raeburn Exp $
+# $Id: lonstudentassessment.pm,v 1.169.2.4 2013/05/11 21:39:31 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -279,7 +279,7 @@
     # Build the 'all students' button
     my $all = '';
     $all .= '<input type="button" value="'.&mt('All Students').'" '.
-            '" onclick="document.Statistics.SelectedStudent.value='.
+            ' onclick="document.Statistics.SelectedStudent.value='.
             "''".';'.'document.Statistics.submit();" />';
     $Str .= $previousbutton.(' 'x5).$all.(' 'x5).$nextbutton;
     return $Str;
@@ -462,7 +462,7 @@
     $Str = qq/<select size="5" name="$elementname">/;
     foreach my $option (@OutputOptions) {
         $Str .= "\n".'    <option value="'.$option->{'value'}.'"';
-        $Str .= " selected " if ($option->{'value'} eq $selected);
+        $Str .= ' selected="selected"' if ($option->{'value'} eq $selected);
         $Str .= ">".&mt($option->{'name'})."<\/option>";
     }
     $Str .= "\n</select>";
@@ -579,7 +579,7 @@
     $Str = qq/<select size="5" name="$elementname">/;
     foreach my $option (@OutputDataOptions) {
         $Str .= "\n".'    <option value="'.$option->{'value'}.'"';
-        $Str .= " selected " if ($option->{'value'} eq $chosen_output->{'value'});
+        $Str .= ' selected="selected"' if ($option->{'value'} eq $chosen_output->{'value'});
         $Str .= ">".&mt($option->{'name'})."<\/option>";
     }
     $Str .= "\n</select>";
@@ -1968,9 +1968,9 @@
                  ($links eq 'all')) {
                 my $link = '/adm/grades'.
                     '?symb='.&escape($resource->shown_symb).
-                        '&student='.$student->{'username'}.
-                            '&userdom='.$student->{'domain'}.
-                                '&command=submission';
+                        '&student='.$student->{'username'}.
+                            '&userdom='.$student->{'domain'}.
+                                '&command=submission';
                 $symbol = &link($symbol, $link);
             }
             $value .= $symbol;
@@ -2126,9 +2126,9 @@
             if ( ($links eq 'yes' && $symbol ne ' ') || ($links eq 'all')) {
                 my $link = '/adm/grades' .
                     '?symb='.&escape($resource->shown_symb).
-                    '&student='.$student->{'username'}.
-                    '&userdom='.$student->{'domain'}.
-                    '&command=submission';
+                    '&student='.$student->{'username'}.
+                    '&userdom='.$student->{'domain'}.
+                    '&command=submission';
                 $symbol = &link($symbol, $link);
             }
             $Str .= $symbol;




More information about the LON-CAPA-cvs mailing list