Skip to content
Snippets Groups Projects
Commit 122294af authored by Peter Rotich's avatar Peter Rotich
Browse files

Update recipients count in realtime

Previously you had to click "Save Changes" for the count to be reflected on
ticket view page.
parent 1f665429
No related branches found
No related tags found
No related merge requests found
......@@ -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
}
?>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment