[Rt-commit] rt branch, 4.4/modify-people-squelch-all-checkbox, created. rt-4.4.1-98-gcf35ab3
Dustin Graves
dustin at bestpractical.com
Wed Aug 10 17:48:19 EDT 2016
The branch, 4.4/modify-people-squelch-all-checkbox has been created
at cf35ab3fb21f46ef7c68bc5fe8bfdd4b79c87346 (commit)
- Log -----------------------------------------------------------------
commit cf35ab3fb21f46ef7c68bc5fe8bfdd4b79c87346
Author: Dustin Graves <dustin at bestpractical.com>
Date: Tue Aug 9 23:11:24 2016 +0000
add 'All recipients' checkbox to ModifyPeople.html similar to the one on Update.html
this checkbox will check/uncheck all of the individual recipient checkboxes
Fixes: T#168226
diff --git a/share/html/Ticket/ModifyPeople.html b/share/html/Ticket/ModifyPeople.html
index bb02e6e..1bdd72f 100644
--- a/share/html/Ticket/ModifyPeople.html
+++ b/share/html/Ticket/ModifyPeople.html
@@ -63,6 +63,24 @@
<&|/l&>The checked users may receive email related to this ticket depending on the action taken. Uncheck users to stop sending email to them about this ticket.</&>
</p>
+<%PERL>
+my $all_recipients_checked = (grep { !$_ } values %recips) ? 0 : 1;
+</%PERL>
+<input type="checkbox" class="checkbox" id="TxnSendMailToAll" <% $all_recipients_checked ? 'checked' : '' %>>
+<label for="TxnSendMailToAll"><b><% loc('All recipients') %></b></label><br />
+<script type="text/javascript">
+jQuery(function() {
+ jQuery('#TxnSendMailToAll').click(function() {
+ var allCheckbox = jQuery(this);
+ var isChecked = allCheckbox.is(':checked');
+ jQuery('div.ticket-info-squelch input[name="checked_recipient"]').each(function(i, checkbox) {
+ checkbox = jQuery(checkbox);
+ checkbox.prop('checked', isChecked);
+ });
+ });
+});
+</script>
+
<ul>
% for my $addr (sort keys %recips) {
<li>
-----------------------------------------------------------------------
More information about the rt-commit
mailing list