[Rt-commit] [rtir] 02/03: Add callbacks to Lookup tools
Shawn Moore
shawn at bestpractical.com
Tue Feb 9 16:55:26 EST 2016
This is an automated email from the git hooks/post-receive script.
shawn pushed a commit to branch 3.4/lookup-improvements
in repository rtir.
commit 4785aeebf572c0825597ef2d6bcfe173464f7534
Author: Shawn M Moore <shawn at bestpractical.com>
Date: Tue Feb 9 21:33:22 2016 +0000
Add callbacks to Lookup tools
---
html/RTIR/Tools/Lookup.html | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/html/RTIR/Tools/Lookup.html b/html/RTIR/Tools/Lookup.html
index 83fd604..1786134 100644
--- a/html/RTIR/Tools/Lookup.html
+++ b/html/RTIR/Tools/Lookup.html
@@ -48,6 +48,8 @@
<& /RTIR/Elements/Header, Title => $title &>
<& /Elements/Tabs &>
+% $m->callback(CallbackName => 'BeforeCurrent', %ARGS, ARGSRef => \%ARGS, Ticket => $TicketObj, LookupType => $type, q => $q);
+
% if ( $TicketObj ) {
<&| /Widgets/TitleBox, title => loc("Current [_1]: #[_2]", $TicketType, $ticket), class => 'ticket-info-basics' &>
<& /Elements/CollectionList, Query => "id = $ticket", Format => RT->Config->Get('RTIRSearchResultFormats')->{$TicketType . 'Default'}, ShowNavigation => 0,
@@ -55,10 +57,14 @@
</&>
% }
+% $m->callback(CallbackName => 'AfterCurrent', %ARGS, ARGSRef => \%ARGS, Ticket => $TicketObj, LookupType => $type, q => $q);
+
% if ( ! $HideResults ) {
<& Elements/LookupRelatedTickets, TicketObj => $TicketObj, LookupType => $type, q => $q &>
% }
+% $m->callback(CallbackName => 'BeforeTools', %ARGS, ARGSRef => \%ARGS, Ticket => $TicketObj, LookupType => $type, q => $q);
+
<hr>
<h2><&|/l&>Look Up Information</&></h2>
<& Elements/Tools,
@@ -68,6 +74,8 @@
PassArguments => [qw(ticket type HideResults)],
&>
+% $m->callback(CallbackName => 'AfterTools', %ARGS, ARGSRef => \%ARGS, Ticket => $TicketObj, LookupType => $type, q => $q);
+
<%INIT>
# Redirect when necessary
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the rt-commit
mailing list