diff --git a/include/staff/templates/collaborators.tmpl.php b/include/staff/templates/collaborators.tmpl.php index 3136cc96d29c507168cddc3f0d55bdf2d7f71f2f..20e5192ca74e2b3a372f4b9eb6981def33cbd792 100644 --- a/include/staff/templates/collaborators.tmpl.php +++ b/include/staff/templates/collaborators.tmpl.php @@ -54,4 +54,18 @@ if(($users=$ticket->getCollaborators())) {?> } else { echo "Bro, not sure how you got here!"; } + +if ($_POST && $ticket && $ticket->getNumCollaborators()) { + $recipients = sprintf('Recipients (%d of %d)', + $ticket->getNumActiveCollaborators(), + $ticket->getNumCollaborators()); + ?> + <script type="text/javascript"> + $(function() { + $('#emailcollab').show(); + $('#recipients').html('<?php echo $recipients; ?>'); + }); + </script> +<?php +} ?>