--- loncom/homework/inputtags.pm 2005/08/02 18:05:25 1.173 +++ loncom/homework/inputtags.pm 2005/09/09 18:45:56 1.175 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # input definitons # -# $Id: inputtags.pm,v 1.173 2005/08/02 18:05:25 albertel Exp $ +# $Id: inputtags.pm,v 1.175 2005/09/09 18:45:56 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -43,11 +43,11 @@ sub initialize_inputtags { # list of all input ids seen in this problem @Apache::inputtags::inputlist=(); # list of all current response ids - @Apache::inputtags::hint=(); + @Apache::inputtags::response=(); # list of all response ids seen in this problem @Apache::inputtags::responselist=(); # list of all current hint ids - @Apache::inputtags::response=(); + @Apache::inputtags::hint=(); # list of all hint ids seen in this problem @Apache::inputtags::hintlist=(); # list of whether or not a specific response was previously used @@ -306,9 +306,10 @@ sub end_hiddenline { # $which -> 'uploadedonly' -> only newly uploaded files # 'portfolioonly' -> only allow files from portfolio # 'both' -> allow files from either location +# $extratext -> additional text to go between the link and the input box # returns a table row sub file_selector { - my ($part,$id,$uploadedfiletypes,$which)=@_; + my ($part,$id,$uploadedfiletypes,$which,$extratext)=@_; if (!$uploadedfiletypes) { return ''; } my $jspart=$part; @@ -343,7 +344,7 @@ sub file_selector { $result.='
'.''.&mt('OR:').'
'; } if ($which eq 'portfolioonly' || $which eq 'both') { - $result.=''. + $result.=$extratext.''. &mt('Select Portfolio Files').'
'. ''. '
';