Skip to content

Commit

Permalink
fix(frontend): cannot remove attachments when forwarding an email (#1437
Browse files Browse the repository at this point in the history
)
  • Loading branch information
mercihabam authored Jan 29, 2025
1 parent 4b11ba6 commit e2ad6a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/smtp/modules.php
Original file line number Diff line number Diff line change
Expand Up @@ -1695,7 +1695,7 @@ function format_attachment_row($file, $output_mod) {
return '<tr id="tr-'.$unique_identifier.'"><td>'.
$output_mod->html_safe($file['name']).'</td><td>'.$output_mod->html_safe($file['type']).' ' .$output_mod->html_safe(round($file['size']/1024, 2)). 'KB '.
'<td style="display:none"><input name="uploaded_files[]" type="text" value="'.$file['name'].'" /></td>'.
'</td><td><a class="remove_attachment invalid-feedback" id="remove-'.$unique_identifier.'" href="#">Remove</a><a style="display:none" id="pause-'.$unique_identifier.'" class="pause_upload" href="#">Pause</a><a style="display:none" id="resume-'.$unique_identifier.'" class="resume_upload" href="#">Resume</a></td></tr><tr><td colspan="2">'.
'</td><td><a class="remove_attachment text-danger" id="remove-'.$unique_identifier.'" href="#">Remove</a><a style="display:none" id="pause-'.$unique_identifier.'" class="pause_upload" href="#">Pause</a><a style="display:none" id="resume-'.$unique_identifier.'" class="resume_upload" href="#">Resume</a></td></tr><tr><td colspan="2">'.
'<div class="meter" style="width:100%; display: none;"><span id="progress-'.
$unique_identifier.'" style="width:0%;"><span class="progress" id="progress-bar-'.
$unique_identifier.'"></span></span></div></td></tr>';
Expand Down

0 comments on commit e2ad6a3

Please sign in to comment.