[LON-CAPA-cvs] cvs: loncom /interface lonnavmaps.pm
bowersj2
lon-capa-cvs@mail.lon-capa.org
Mon, 14 Oct 2002 14:14:49 -0000
bowersj2 Mon Oct 14 10:14:49 2002 EDT
Modified files:
/loncom/interface lonnavmaps.pm
Log:
A "duh": The 24 hour "it's time to panic" highlight should only show
in the interval between the due time and 24 hours before the due time,
and only if there is a duedate at all, not just "anytime after 24 hours
before the due date when the problem is open".
Index: loncom/interface/lonnavmaps.pm
diff -u loncom/interface/lonnavmaps.pm:1.75 loncom/interface/lonnavmaps.pm:1.76
--- loncom/interface/lonnavmaps.pm:1.75 Fri Oct 11 17:34:42 2002
+++ loncom/interface/lonnavmaps.pm Mon Oct 14 10:14:49 2002
@@ -2,7 +2,7 @@
# The LearningOnline Network with CAPA
# Navigate Maps Handler
#
-# $Id: lonnavmaps.pm,v 1.75 2002/10/11 21:34:42 bowersj2 Exp $
+# $Id: lonnavmaps.pm,v 1.76 2002/10/14 14:14:49 bowersj2 Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -1150,8 +1150,9 @@
# Special case in the navmaps: If in less then
# 24 hours, give it a bit of urgency
- if ($status == $curRes->OPEN() &&
- $curRes->duedate() < time()+(24*60*60)) {
+ if ($status == $curRes->OPEN() && $curRes->duedate() &&
+ $curRes->duedate() < time()+(24*60*60) &&
+ $curRes->duedate() > time()) {
$color = $hurryUpColor;
}
if ($color ne "") {