diff options
author | Aleksander Machniak <alec@alec.pl> | 2013-03-15 12:50:53 +0100 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2013-03-15 12:50:53 +0100 |
commit | 0e32d7032b54838607e071588fd30ff8b13fc7fe (patch) | |
tree | 85c4c6285d16c64c3220e828d58eee63f5933b05 | |
parent | ea98ec0939532d6539689524414b9eeb1c6cd0fc (diff) |
Fix load-attachment link
-rw-r--r-- | program/steps/mail/func.inc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/program/steps/mail/func.inc b/program/steps/mail/func.inc index 3aea6322e..8c9743949 100644 --- a/program/steps/mail/func.inc +++ b/program/steps/mail/func.inc @@ -1185,10 +1185,9 @@ function rcmail_message_body($attrib) $show_link = array( 'href' => $MESSAGE->get_part_url($attach_prop->mime_id, false), 'onclick' => sprintf( - 'return %s.command(\'load-attachment\',{part:\'%s\', mimetype:\'%s\'},this)', + 'return %s.command(\'load-attachment\',\'%s\',this)', JS_OBJECT_NAME, - $attach_prop->mime_id, - $mimetype) + $attach_prop->mime_id) ); $out .= html::p('image-attachment', html::a($show_link + array('class' => 'image-link', 'style' => sprintf('width:%dpx', $thumbnail_size)), |