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

www www@source.lon-capa.org
Sat, 05 Jun 2010 01:38:43 -0000


www		Sat Jun  5 01:38:43 2010 EDT

  Modified files:              
    /loncom/homework	inputtags.pm 
  Log:
  Bug #636: in multipart problems, jump to the part that was submitted.
  
  
Index: loncom/homework/inputtags.pm
diff -u loncom/homework/inputtags.pm:1.261 loncom/homework/inputtags.pm:1.262
--- loncom/homework/inputtags.pm:1.261	Sun Feb 28 23:27:36 2010
+++ loncom/homework/inputtags.pm	Sat Jun  5 01:38:43 2010
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # input  definitons
 #
-# $Id: inputtags.pm,v 1.261 2010/02/28 23:27:36 raeburn Exp $
+# $Id: inputtags.pm,v 1.262 2010/06/05 01:38:43 www Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -1327,7 +1327,7 @@
 	if ( $showbutton ) { 
 	    if ($target ne 'tex') {
 		$button = 
-            '<input onmouseup="javascript:setSubmittedPart(\''.$id.'\')"
+            '<input onmouseup="javascript:setSubmittedPart(\''.$id.'\');this.form.action+=\'#'.&escape($id).'\';"
                     type="submit" name="submit_'.$id.'"
                     value="'.&mt('Submit Answer').'" />';
 	    }