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

www www@source.lon-capa.org
Fri, 10 Jun 2011 17:10:17 -0000


www		Fri Jun 10 17:10:17 2011 EDT

  Modified files:              
    /loncom/homework	inputtags.pm 
  Log:
  Bug #1311: replace "you are correct" for handgraded items
  
  
Index: loncom/homework/inputtags.pm
diff -u loncom/homework/inputtags.pm:1.290 loncom/homework/inputtags.pm:1.291
--- loncom/homework/inputtags.pm:1.290	Mon Jun  6 23:28:42 2011
+++ loncom/homework/inputtags.pm	Fri Jun 10 17:10:17 2011
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # input  definitons
 #
-# $Id: inputtags.pm,v 1.290 2011/06/06 23:28:42 www Exp $
+# $Id: inputtags.pm,v 1.291 2011/06/10 17:10:17 www Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -885,8 +885,8 @@
 	    $message=&mt('Incorrect.');
 	    $css_class=$possible_class{'charged_try'};
 	}
-	if ($env{'request.filename'} =~ 
-	    m|/res/lib/templates/examupload.problem$|) {
+	if ($handgrade || 
+            ($env{'request.filename'}=~/\/res\/lib\/templates\/(examupload|DropBox).problem$/)) {
 	    $message = &mt("A score has been assigned.");
 	    $added_computer_text=1;
 	} else {