Display attachment size in compose (#1484774)
| | |
| | | CHANGELOG Roundcube Webmail |
| | | =========================== |
| | | |
| | | - Display attachment size in compose (#1484774) |
| | | - Added possibility to drag-n-drop attachments from mail preview to compose window |
| | | - Implemented mail messages searching with predefined date interval |
| | | - PGP encryption support via Mailvelope integration |
| | |
| | | 'aria-label' => $RCMAIL->gettext('delete') . ' ' . $attachment['name'], |
| | | ), $button); |
| | | |
| | | $content .= rcube::Q($attachment['name']); |
| | | $content .= sprintf('%s <span class="attachment-size">(%s)</span>', |
| | | rcube::Q($attachment['name']), $RCMAIL->show_bytes($attachment['size'])); |
| | | |
| | | $RCMAIL->output->command('add2attachment_list', "rcmfile$id", array( |
| | | 'html' => $content, |
| | |
| | | 'group' => $COMPOSE_ID, |
| | | 'name' => $filename, |
| | | 'mimetype' => rcube_mime::file_content_type($attach, $filename), |
| | | 'size' => filesize($attach), |
| | | 'path' => $attach, |
| | | ); |
| | | } |
| | |
| | | continue; |
| | | } |
| | | |
| | | $content = sprintf('%s <span class="attachment-size">(%s)</span>', |
| | | rcube::Q($a_prop['name']), $RCMAIL->show_bytes($a_prop['size'])); |
| | | |
| | | $out .= html::tag('li', array( |
| | | 'id' => 'rcmfile'.$id, |
| | | 'class' => rcube_utils::file2class($a_prop['mimetype'], $a_prop['name']), |
| | |
| | | 'aria-label' => $RCMAIL->gettext('delete') . ' ' . $a_prop['name'], |
| | | ), |
| | | $button |
| | | ) . rcube::Q($a_prop['name']) |
| | | ) . $content |
| | | ); |
| | | |
| | | $jslist['rcmfile'.$id] = array( |
| | |
| | | -webkit-box-shadow: 0 0 5px 2px rgba(71,135,177, 0.9); |
| | | } |
| | | |
| | | #compose-attachments .attachment-size { |
| | | color: #888; |
| | | } |
| | | |
| | | #composeview-bottom .formbuttons.floating { |
| | | position: absolute; |
| | | width: auto; |