--- loncom/homework/essayresponse.pm 2004/11/23 14:37:33 1.50
+++ loncom/homework/essayresponse.pm 2004/12/06 18:09:54 1.52
@@ -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.52 2004/12/06 18:09:54 banghart Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -70,13 +70,13 @@ sub start_essayresponse {
$part.'_'.$id.'" onFocus="this.form.enctype='.
"'multipart/form-data'".';" />
'.
&mt('Allowed filetypes: [_1]',$uploadedfiletypes).'
'.
- 'OR:
Select Portfolio Files'.
+ 'OR:
Select Portfolio Files'.
'
'.
''.
'
';
if ($Apache::lonhomework::history{"resource.$part.$id.portfiles"}=~/[^\s]/){
- $result.="Portfolio files previously selected: ".$Apache::lonhomework::history{"resource.$part.$id.portfiles"}."
";
+ $result.="Portfolio files previously selected: ".&Apache::lonnet::unescape($Apache::lonhomework::history{"resource.$part.$id.portfiles"})."
";
}
if ($uploadedfile) {
@@ -146,6 +146,7 @@ sub end_essayresponse {
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;