[Rt-commit] rt branch, 4.4/add-attachments-before-delete-link-callback, created. rt-4.4.3-135-g6cb78c470b
? sunnavy
sunnavy at bestpractical.com
Wed Dec 19 17:17:54 EST 2018
The branch, 4.4/add-attachments-before-delete-link-callback has been created
at 6cb78c470b5ce0d68be41f87ada8ec74cb446892 (commit)
- Log -----------------------------------------------------------------
commit 6cb78c470b5ce0d68be41f87ada8ec74cb446892
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 d19033544c..105e1a9419 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( ARGSRef => \%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