- Fixed a problem with the file upload control where you couldn't delete the
file if you have multiple attached.
This commit is contained in:
parent
844f3b14ae
commit
982e8343fc
3 changed files with 21 additions and 12 deletions
|
|
@ -103,8 +103,9 @@ sub getFilePreview {
|
|||
my $image = $storage->isImage($file) ? $storage->getThumbnailUrl($file) : $storage->getFileIconUrl($file);
|
||||
$preview .= '<p style="display:inline;vertical-align:middle;"><a href="'.$storage->getUrl($file).'">'
|
||||
.'<img src="'.$image.'" style="vertical-align:middle;border: 0px;" alt="'
|
||||
.$file.'" /> '.$file.'</a></p><br />';
|
||||
$preview .= $i18n->get(392) . " "x4 . WebGUI::Form::YesNo->new($self->session, {-name=>$self->privateName('delete'), -value=>0})->toHtml;
|
||||
.$file.'" /> '.$file.'</a> <br />';
|
||||
$preview .= $i18n->get(392) . " "x4 . WebGUI::Form::YesNo->new($self->session, {-name=>$self->privateName('delete_'.$file), -value=>0})->toHtml;
|
||||
$preview .= '</p><br /><br />'
|
||||
}
|
||||
return $preview;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue