Diff for /loncom/interface/lonwhatsnew.pm between versions 1.119 and 1.120

version 1.119, 2016/10/16 23:19:59 version 1.120, 2016/10/23 21:50:55
Line 1145  sub check_thresholds { Line 1145  sub check_thresholds {
                      <td>'.$stats{$part}{attempts}.'</td>                       <td>'.$stats{$part}{attempts}.'</td>
                      <td>'.$stats{$part}{degdiff}.'</td>                       <td>'.$stats{$part}{degdiff}.'</td>
                      <td>'.$lastreset{$part}.'</td>';                       <td>'.$lastreset{$part}.'</td>';
                 if ($checkallowed->{'resetcounters'}) {                     if ($checkallowed->{'resetcounters'}) {
                     $$triggered{$symb}{text}[$partcount] .=                       $$triggered{$symb}{text}[$partcount] .=
                         '<td><input type="checkbox" name="'.$resetname.'" />'.                          '<td><input type="checkbox" name="'.$resetname.'" />'.
                         '<input type="hidden" name="'.$resettitle.'" value="'.&escape($$triggered{$symb}{title}).'" /></td>';                          '<input type="hidden" name="'.$resettitle.'" value="'.&escape($$triggered{$symb}{title}).'" /></td>';
                 }                  }
Line 1214  sub process_reset { Line 1214  sub process_reset {
     my ($dom,$crs,$checkallowed) = @_;      my ($dom,$crs,$checkallowed) = @_;
     if (!$checkallowed->{'resetcounters'}) {      if (!$checkallowed->{'resetcounters'}) {
         return '<b>'.&mt('You do not the required privileges to reset counters').          return '<b>'.&mt('You do not the required privileges to reset counters').
                '</b><br />';                  '</b><br />';
     }      }
     my $result = '<b>'.&mt('Counters reset for following problems (and parts):').      my $result = '<b>'.&mt('Counters reset for following problems (and parts):').
                            '</b><br />';                             '</b><br />';
Line 1741  sub display_abovethreshold { Line 1741  sub display_abovethreshold {
                 }                  }
             }              }
         }          }
         if ($checkallowed->{'resetcounters'}) {           if ($checkallowed->{'resetcounters'}) {
             $r->print('<tr class="LC_info_row"><td colspan="7" class="LC_right_item"><br /><input type="button" name="counters" value="'.$lt{'rese'}.'" onclick="javascript:thresholdreset();" /></td></tr>');              $r->print('<tr class="LC_info_row"><td colspan="7" class="LC_right_item"><br /><input type="button" name="counters" value="'.$lt{'rese'}.'" onclick="javascript:thresholdreset();" /></td></tr>');
         }          }
     } elsif ($itemserror) {      } elsif ($itemserror) {

Removed from v.1.119  
changed lines
  Added in v.1.120


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>