--- loncom/homework/inputtags.pm 2010/12/20 19:34:47 1.271.2.2 +++ loncom/homework/inputtags.pm 2010/12/31 19:10:16 1.271.2.4 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # input definitons # -# $Id: inputtags.pm,v 1.271.2.2 2010/12/20 19:34:47 raeburn Exp $ +# $Id: inputtags.pm,v 1.271.2.4 2010/12/31 19:10:16 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -175,6 +175,7 @@ sub start_textfield { if ($target eq 'web') { $Apache::lonxml::evaluate--; my $partid=$Apache::inputtags::part; + my ($oldresponse,$newvariation); if ((($Apache::lonhomework::history{"resource.$partid.type"} eq 'randomizetry') || ($Apache::lonhomework::type eq 'randomizetry')) && ($Apache::inputtags::status[-1] eq 'CAN_ANSWER')) { @@ -595,9 +596,9 @@ sub current_file_submissions { } } } + my $num = 0; foreach my $name (sort(keys(%okfiles))) { if (ref($okfiles{$name}) eq 'ARRAY') { - my $num = 0; foreach my $url (@{$okfiles{$name}}) { if (ref($rows{$url}) eq 'HASH') { my $link = $rows{$url}{link}; @@ -623,7 +624,7 @@ sub current_file_submissions { } $result .= ''.$showname.''."\n". + '" border="0" alt="" />'.$showname.''."\n". ''.$rows{$url}{size}.''."\n". ''.$rows{$url}{lastmodified}.''."\n". &Apache::loncommon::end_data_table_row(); @@ -635,7 +636,7 @@ sub current_file_submissions { if ($header_shown) { $result .= &Apache::loncommon::end_data_table(). '
'. - &mt('Items checked for deletion will not be included amongst the files evaluated when your submission is graded.').''; + &mt('Exclude existing file(s) from grading by checking the "Delete?" checkbox(es) and clicking "Submit Answer"').''; } if (@bad_file_list) { my $bad_files = ''.