Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 72be8f98

Von Tamino Steinert vor 11 Monaten hinzugefügt

  • ID 72be8f9880086880eb55805a50e6e93b85b960ae
  • Vorgänger 4a14c2cd
  • Nachfolger fff3f239

EmailJournal: Anhangsvorschau mit kopierbaren Text

Unterschiede anzeigen:

SL/Controller/EmailJournal.pm
87 87
                back_to => $back_to);
88 88
}
89 89

  
90
sub action_show_attachment {
91
  my ($self) = @_;
92

  
93
  $::auth->assert('email_journal');
94

  
95
  my $attachment_id      = $::form->{attachment_id};
96
  my $attachment = SL::DB::EmailJournalAttachment->new(id => $attachment_id)->load;
97

  
98
  return $self->send_file(
99
    \$attachment->content,
100
    name => $attachment->name,
101
    type => $attachment->mime_type,
102
    content_disposition => 'inline',
103
  );
104
}
105

  
90 106
sub action_download_attachment {
91 107
  my ($self) = @_;
92 108

  
......
164 180
    ->replaceWith('#attachment_preview',
165 181
      SL::Presenter::EmailJournal::attachment_preview(
166 182
        $attachment,
167
        style => "width:655px;border:1px solid black;margin:9px"
183
        style => "height:1800px"
168 184
      )
169 185
    )
170 186
    ->render();

Auch abrufbar als: Unified diff