[LON-CAPA-cvs] cvs: loncom /homework inputtags.pm

www www@source.lon-capa.org
Mon, 07 Mar 2011 22:38:09 -0000


www		Mon Mar  7 22:38:09 2011 EDT

  Modified files:              
    /loncom/homework	inputtags.pm 
  Log:
  Lenient grading for optionresponse now seems to work, but all of homework
  now needs testing online and in scantron
  
  
Index: loncom/homework/inputtags.pm
diff -u loncom/homework/inputtags.pm:1.284 loncom/homework/inputtags.pm:1.285
--- loncom/homework/inputtags.pm:1.284	Mon Mar  7 22:11:50 2011
+++ loncom/homework/inputtags.pm	Mon Mar  7 22:38:09 2011
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # input  definitons
 #
-# $Id: inputtags.pm,v 1.284 2011/03/07 22:11:50 www Exp $
+# $Id: inputtags.pm,v 1.285 2011/03/07 22:38:09 www Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -868,7 +868,7 @@
 		}
 	    }
 	}
-	$button=0;
+        if ($awarded==1) { $button=0; } else { $button=1; }
 	$previousmsg='';
     } elsif ($solved =~ /^excused/) {
 	if ($target eq 'tex') {