[Rt-commit] [rtir] 01/07: ShowSimplifiedRecipients has been ajaxified in RT 4.4
? sunnavy
sunnavy at bestpractical.com
Fri Oct 16 14:08:24 EDT 2015
This is an automated email from the git hooks/post-receive script.
sunnavy pushed a commit to branch 3.4/rt-4.4-compat
in repository rtir.
commit ab60ee1719bc7eb18b87853008ea7d900a566a7a
Author: sunnavy <sunnavy at bestpractical.com>
Date: Fri Oct 16 21:47:06 2015 +0800
ShowSimplifiedRecipients has been ajaxified in RT 4.4
---
html/RTIR/Update.html | 24 +++++++++++++++++++-----
1 file changed, 19 insertions(+), 5 deletions(-)
diff --git a/html/RTIR/Update.html b/html/RTIR/Update.html
index 1db2be0..452a6e7 100644
--- a/html/RTIR/Update.html
+++ b/html/RTIR/Update.html
@@ -117,11 +117,25 @@
<div id="ticket-update-message">
-<& /Ticket/Elements/ShowSimplifiedRecipients, %ARGS, TicketObj => $Ticket &>
-
-% if (my $recips = $m->notes("DryRun-Recipients-".$Ticket->Id)) {
-<input type="hidden" name="TxnRecipients" value="<% join ",",sort keys %{$recips} %>" />
-% }
+<&|/Widgets/TitleBox, title => loc('Recipients'), id => 'recipients' &>
+</&>
+<script type="text/javascript">
+jQuery( function() {
+ var updateScrips = function() {
+ jQuery('#recipients div.titlebox-content').load( '<% RT->Config->Get('WebPath')%>/Helpers/ShowSimplifiedRecipients',
+ jQuery('form[name=TicketUpdate]').serialize(),
+ function() {
+ var txn_send_field = jQuery("#recipients input[name=TxnSendMailTo]");
+ txn_send_field.click( function () { setCheckbox(this) } );
+ jQuery("#recipients input[name=TxnSendMailToAll]").click( function() { setCheckbox(this, 'TxnSendMailTo'); } );
+ setCheckbox(txn_send_field);
+ }
+ );
+ };
+ updateScrips();
+ jQuery("#ticket-update-metadata :input, input[name^=UpdateCc], input[name^=UpdateBcc]").change( updateScrips );
+});
+</script>
<&|/Widgets/TitleBox, title => loc('Message'), class => 'messagedetails' &>
<table width="100%" border="0">
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the rt-commit
mailing list