Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 860c8bbe

Von Tamino Steinert vor mehr als 1 Jahr hinzugefügt

  • ID 860c8bbe44b658a34a3129dc8b6b0a99a8d02cb0
  • Vorgänger 21e2dc57
  • Nachfolger 95f810ee

EmailJournal: Anhangsvorschau mit kopierbaren Text

Unterschiede anzeigen:

SL/Controller/EmailJournal.pm
back_to => $back_to);
}
sub action_show_attachment {
my ($self) = @_;
$::auth->assert('email_journal');
my $attachment_id = $::form->{attachment_id};
my $attachment = SL::DB::EmailJournalAttachment->new(id => $attachment_id)->load;
return $self->send_file(
\$attachment->content,
name => $attachment->name,
type => $attachment->mime_type,
content_disposition => 'inline',
);
}
sub action_download_attachment {
my ($self) = @_;
......
->replaceWith('#attachment_preview',
SL::Presenter::EmailJournal::attachment_preview(
$attachment,
style => "width:655px;border:1px solid black;margin:9px"
style => "height:1800px"
)
)
->render();

Auch abrufbar als: Unified diff