--- loncom/interface/lonwhatsnew.pm 2015/03/12 03:28:51 1.105.2.10
+++ loncom/interface/lonwhatsnew.pm 2013/03/05 23:23:11 1.112
@@ -1,5 +1,5 @@
#
-# $Id: lonwhatsnew.pm,v 1.105.2.10 2015/03/12 03:28:51 raeburn Exp $
+# $Id: lonwhatsnew.pm,v 1.112 2013/03/05 23:23:11 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -598,10 +598,6 @@ sub display_actions_box {
if ($needitems) {
$itemserror = &getitems(\%unread,\%ungraded,\%bombed,\%triggered,\%changed,\@newdiscussions,\@tograde,\@bombs,\@warnings,\%threshold,$cdom,$crs,\%res_title,\%show,$starttime,$countunread);
}
- my $classlist;
- if ($show{'oldroles'} || $show{'newroles'} || $show{'crslogin'}) {
- $classlist = &Apache::loncoursedata::get_classlist();
- }
if ($show{'coursenormalmail'}) {
$msgcount = &getnormalmail(\@newmsgs);
}
@@ -609,10 +605,10 @@ sub display_actions_box {
$critmsgcount = &getcritmail(\@critmsgs);
}
if ($show{'oldroles'}) {
- $expirecount = &getexpired(\%expired,$expiredstart,'previous',$classlist);
+ $expirecount = &getexpired(\%expired,$expiredstart,'previous');
}
if ($show{'newroles'}) {
- $activecount = &getactivated(\%activated,$activatedstart,'active',$classlist);
+ $activecount = &getactivated(\%activated,$activatedstart,'active');
}
if ($show{'crslogin'}) {
$logincount = &getloggedin($cdom,$crs,\%loggedin,$crsloginstart);
@@ -645,7 +641,7 @@ sub display_actions_box {
if ($displayed == $halfway) {
$r->print('
| ');
}
- &display_launcher($r,$actionitem,$refpage,$checkallowed,\%show,\%headings,\%res_title,\@tograde,\%ungraded,\@bombs,\%bombed,\%changed,\@warnings,\%triggered,\@newdiscussions,\%unread,$msgcount,\@newmsgs,$critmsgcount,\@critmsgs,\%interval,$countunread,\%expired,$expirecount,\%activated,$activecount,$crstype,$itemserror,\%loggedin,$logincount,$classlist);
+ &display_launcher($r,$actionitem,$refpage,$checkallowed,\%show,\%headings,\%res_title,\@tograde,\%ungraded,\@bombs,\%bombed,\%changed,\@warnings,\%triggered,\@newdiscussions,\%unread,$msgcount,\@newmsgs,$critmsgcount,\@critmsgs,\%interval,$countunread,\%expired,$expirecount,\%activated,$activecount,$crstype,$itemserror,\%loggedin,$logincount);
$displayed ++;
}
}
@@ -692,7 +688,7 @@ sub display_threshold_config {
foreach my $type (@thresholditems) {
my $parameter = $env{'request.course.id'}.':threshold_'.$type;
# onchange is javascript to automatically check the 'Set' button.
- my $onchange = 'onfocus="javascript:window.document.forms'.
+ my $onchange = 'onFocus="javascript:window.document.forms'.
"['thresholdform'].elements['".$parameter."_setparmval']".
'.checked=true;"';
$r->print(&Apache::loncommon::start_data_table_row()."\n".
@@ -799,7 +795,7 @@ function toggle_countunread(choice) {
.' '
.&mt("This can increase the time taken to gather data for the [_1]What's New Page[_2] by a few seconds.",'','')
.' '
- .&mt('Currently set to [_1].',''.$current.'')
+ .&mt('Currently set to [_1].',''.$current.'.')
);
$r->print('
|