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

banghart lon-capa-cvs@mail.lon-capa.org
Sat, 04 Dec 2004 19:16:42 -0000


banghart		Sat Dec  4 14:16:42 2004 EDT

  Modified files:              
    /loncom/homework	essayresponse.pm 
  Log:
  	Corrected size of popup portfolio selection window.
  	Clear file storing multiple directory selection on
  	end of submission.
  
  
Index: loncom/homework/essayresponse.pm
diff -u loncom/homework/essayresponse.pm:1.50 loncom/homework/essayresponse.pm:1.51
--- loncom/homework/essayresponse.pm:1.50	Tue Nov 23 09:37:33 2004
+++ loncom/homework/essayresponse.pm	Sat Dec  4 14:16:42 2004
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # essay (ungraded) style responses
 #
-# $Id: essayresponse.pm,v 1.50 2004/11/23 14:37:33 albertel Exp $
+# $Id: essayresponse.pm,v 1.51 2004/12/04 19:16:42 banghart Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -70,8 +70,8 @@
 		$part.'_'.$id.'" onFocus="this.form.enctype='.
 		"'multipart/form-data'".';" /><br />'.
 		&mt('Allowed filetypes: <b>[_1]</b>',$uploadedfiletypes).'<br />'.
-                '<strong>OR:</strong><br /><a href='."'".'javascript:void(window.open("/adm/portfolio?mode=selectfile&fieldname=HWPORT'.$part.'_'.$id.'","cat","height=400,'.
-                'width=500,scrollbars=1,resizable=1,menubar=0,location=1"))'."'".'>Select Portfolio Files</a>'.
+                '<strong>OR:</strong><br /><a href='."'".'javascript:void(window.open("/adm/portfolio?mode=selectfile&fieldname=HWPORT'.$part.'_'.$id.'","cat","height=600,'.
+                'width=600,scrollbars=1,resizable=1,menubar=2,location=1"))'."'".'>Select Portfolio Files</a>'.
                 '<br />'.
                 '<input type="text" size="50" name="HWPORT'.$part.'_'.$id.'" value="" />'.
 		'<br />';
@@ -146,6 +146,7 @@
 		    my ($dsymb,$crsid,$domain,$name)=&Apache::lonxml::whichuser();
 		    &Apache::lonnet::unmark_as_readonly($domain,$name,$dsymb.$crsid);
                     &Apache::lonnet::mark_as_readonly($domain,$name,\@submitted_files,$dsymb.$crsid);
+                    &Apache::lonnet::clear_selected_files($name);
                     $uploadedflag=1;
     	        }
 		$Apache::lonhomework::results{"resource.$part.$id.submission"}=$response;