[LON-CAPA-cvs] cvs: loncom(version_2_1_X) /interface lonnavmaps.pm

albertel lon-capa-cvs@mail.lon-capa.org
Thu, 29 Dec 2005 18:50:35 -0000


albertel		Thu Dec 29 13:50:35 2005 EDT

  Modified files:              (Branch: version_2_1_X)
    /loncom/interface	lonnavmaps.pm 
  Log:
  - this looks better, never show the text "Answer Available" for handgradable problems
  
  
Index: loncom/interface/lonnavmaps.pm
diff -u loncom/interface/lonnavmaps.pm:1.349.2.4 loncom/interface/lonnavmaps.pm:1.349.2.5
--- loncom/interface/lonnavmaps.pm:1.349.2.4	Thu Dec 29 13:12:36 2005
+++ loncom/interface/lonnavmaps.pm	Thu Dec 29 13:50:35 2005
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Navigate Maps Handler
 #
-# $Id: lonnavmaps.pm,v 1.349.2.4 2005/12/29 18:12:36 albertel Exp $
+# $Id: lonnavmaps.pm,v 1.349.2.5 2005/12/29 18:50:35 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -530,9 +530,8 @@
     if ($status == $res->PAST_DUE_NO_ANSWER) {
         return &mt("Was due")." " . timeToHumanString($res->duedate($part),'end');
     }
-    if ($status == $res->ANSWER_OPEN 
-	|| ($status == $res->PARTIALLY_CORRECT
-	    && $res->handgrade($part) ne 'yes')) {
+    if (($status == $res->ANSWER_OPEN || $status == $res->PARTIALLY_CORRECT)
+	&& $res->handgrade($part) ne 'yes') {
         return &mt("Answer available");
     }
     if ($status == $res->EXCUSED) {