[Rt-commit] rt branch, 4.4/add-attachments-before-delete-link-callback, created. rt-4.4.2-229-g0129615ae
? sunnavy
sunnavy at bestpractical.com
Fri May 4 15:39:00 EDT 2018
The branch, 4.4/add-attachments-before-delete-link-callback has been created
at 0129615ae126143ac1903a2a98edf44833d3c8c3 (commit)
- Log -----------------------------------------------------------------
commit 0129615ae126143ac1903a2a98edf44833d3c8c3
Author: sunnavy <sunnavy at bestpractical.com>
Date: Fri May 4 04:30:18 2018 +0800
Add BeforeDeleteLink callback for AddAttachments
diff --git a/share/html/Ticket/Elements/AddAttachments b/share/html/Ticket/Elements/AddAttachments
index d19033544..0d02c3556 100644
--- a/share/html/Ticket/Elements/AddAttachments
+++ b/share/html/Ticket/Elements/AddAttachments
@@ -51,6 +51,7 @@
% foreach my $attach_name ( sort keys %$attachments ) {
<div>
<label for="DeleteAttach-<%$attach_name%>"><% $attach_name %></label>
+% $m->callback( %ARGS, CallbackName => 'BeforeDeleteLink', AttachmentName => $attach_name );
(<a href="#" class="delete-attach" data-name="<%$attach_name%>" /><&|/l&>Delete</&></a>)
</div>
% } # end of foreach
-----------------------------------------------------------------------
More information about the rt-commit
mailing list