Diff for /loncom/interface/lonwhatsnew.pm between versions 1.105.2.3 and 1.105.2.4

version 1.105.2.3, 2012/10/04 06:07:11 version 1.105.2.4, 2012/12/13 22:09:33
Line 285  END Line 285  END
         $scripttag.='document.visible.submit();          $scripttag.='document.visible.submit();
 }  }
   
   function thresholdreset() {
       document.visible.command.value="reset";
       document.visible.submit();
   }
   
 function togglelogins() {  function togglelogins() {
     var total = document.visible.logincount.value;      var total = document.visible.logincount.value;
     var sumrow = document.visible.loginrow.value;      var sumrow = document.visible.loginrow.value;
Line 1663  sub display_abovethreshold { Line 1668  sub display_abovethreshold {
     );      );
     if (@{$warnings} > 0) {      if (@{$warnings} > 0) {
         @{$warnings} = sort { &cmp_title($a,$b,$res_title) } @{$warnings};          @{$warnings} = sort { &cmp_title($a,$b,$res_title) } @{$warnings};
         $r->print('<form name="reset_tracking" method="post" action="/adm/whatsnew">'.  
                 ' <input type="hidden" name="command" value="reset" />'."\n".  
                 ' <input type="hidden" name="refpage" value="'.$refpage.'" />'.  
                 "\n");  
         $r->print('<tr class="LC_info_row">'.          $r->print('<tr class="LC_info_row">'.
   '<td class="LC_left_item">'.$lt{'reso'}.'</td>'.    '<td class="LC_left_item">'.$lt{'reso'}.
                     '<input type="hidden" name="command" value="" /></td>'.
   '<td>'.$lt{'part'}.'</td><td>'.$lt{'nust'}.'</td>'.    '<td>'.$lt{'part'}.'</td><td>'.$lt{'nust'}.'</td>'.
   '<td>'.$lt{'avat'}.'</td><td>'.$lt{'dedi'}.'</td>'.    '<td>'.$lt{'avat'}.'</td><td>'.$lt{'dedi'}.'</td>'.
   '<td>'.$lt{'lare'}.'</td><td  class="LC_right_item">'.    '<td>'.$lt{'lare'}.'</td><td  class="LC_right_item">'.
Line 1704  sub display_abovethreshold { Line 1706  sub display_abovethreshold {
                 }                  }
             }              }
         }          }
         $r->print('<tr class="LC_info_row"><td colspan="7" class="LC_right_item"><br /><input type="submit" name="counters" value="'.$lt{'rese'}.'" /></td></tr></form>');          $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) {
         $r->print('<tr class="LC_empty_row"><td>'.$itemserror.'</td></tr>');          $r->print('<tr class="LC_empty_row"><td>'.$itemserror.'</td></tr>');
     } else {      } else {
Line 1921  sub display_coursediscussion { Line 1923  sub display_coursediscussion {
             my $forum_title = $$unread{$ressymb}{'title'};              my $forum_title = $$unread{$ressymb}{'title'};
             my $type = 'Resource';              my $type = 'Resource';
             my $feedurl=&Apache::lonfeedback::get_feedurl($ressymb);              my $feedurl=&Apache::lonfeedback::get_feedurl($ressymb);
             my $disclink = $feedurl.'?symb='.$$unread{$ressymb}{symb};              my $disclink = $feedurl.'?symb='.&escape($$unread{$ressymb}{symb});
             if ($feedurl =~ /bulletinboard/) {              if ($feedurl =~ /bulletinboard/) {
                 $type = 'Discussion Board';                  $type = 'Discussion Board';
             }              }

Removed from v.1.105.2.3  
changed lines
  Added in v.1.105.2.4


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