Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 6d4090f7

Von Tamino Steinert vor mehr als 1 Jahr hinzugefügt

  • ID 6d4090f7128a3e3db5fe43eb62e945357a74bf5f
  • Vorgänger 13bbfccc
  • Nachfolger c870cfcd

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