[LON-CAPA-cvs] cvs: loncom /homework inputtags.pm
raeburn
raeburn at source.lon-capa.org
Fri Aug 3 11:15:56 EDT 2012
raeburn Fri Aug 3 15:15:56 2012 EDT
Modified files:
/loncom/homework inputtags.pm
Log:
- Modify changes in rev 1.282.
- If status is "SHOW_ANSWER" show message:
'Computer's answer now shown above.' unless this is a handgrade item.
Index: loncom/homework/inputtags.pm
diff -u loncom/homework/inputtags.pm:1.304 loncom/homework/inputtags.pm:1.305
--- loncom/homework/inputtags.pm:1.304 Tue Jun 12 22:02:24 2012
+++ loncom/homework/inputtags.pm Fri Aug 3 15:15:56 2012
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# input definitons
#
-# $Id: inputtags.pm,v 1.304 2012/06/12 22:02:24 raeburn Exp $
+# $Id: inputtags.pm,v 1.305 2012/08/03 15:15:56 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -1522,10 +1522,14 @@
&& $status ne 'RESERVABLE_LATER'
&& $status ne 'NOTRESERVABLE') {
+ if ($status eq 'SHOW_ANSWER') {
+ $showbutton = 0;
+ }
+
($previousmsg,$latemessage,$message,$trystr) =
&get_grade_messages($id,"resource.$id",$target,$status,
$showbutton);
- if ( $status eq 'SHOW_ANSWER' || $status eq 'CANNOT_ANSWER') {
+ if ($status eq 'CANNOT_ANSWER') {
$showbutton = 0;
}
if ( $status eq 'SHOW_ANSWER') {
More information about the LON-CAPA-cvs
mailing list