diff --git a/include/staff/ticket-view.inc.php b/include/staff/ticket-view.inc.php index b255b225dc2aa43fc2c0aa4973513680218ab5c5..3ac6b4efd9d27080490d78b41de17e6d8a87cc70 100644 --- a/include/staff/ticket-view.inc.php +++ b/include/staff/ticket-view.inc.php @@ -446,12 +446,11 @@ $tcount+= $ticket->getNumNotes(); <label><strong>Collaborators:</strong></label> </td> <td> + <input type='checkbox' value='1' name="emailcollab" id="emailcollab" + <?php echo ((!$info['emailcollab'] && !$errors) || isset($info['emailcollab']))?'checked="checked"':''; ?> + style="display:<?php echo $ticket->getNumCollaborators() ? 'inline-block': 'none'; ?>;" + > <?php - if($ticket->getNumCollaborators()) { ?> - <input type='checkbox' value='1' name="emailcollab" id="emailcollab" - <?php echo ((!$info['emailcollab'] && !$errors) || isset($info['emailcollab']))?'checked="checked"':''; ?>> - <?php - } $recipients = 'Add Recipients'; if ($ticket->getNumCollaborators()) $recipients = sprintf('Recipients (%d)', $ticket->getNumActiveCollaborators()); diff --git a/scp/js/ticket.js b/scp/js/ticket.js index cbe25c1e39f4ae8d6b2917acc5fbe47c5a9a5f73..ad51940e995ccb73fa30e6cf50eda37b67811958 100644 --- a/scp/js/ticket.js +++ b/scp/js/ticket.js @@ -368,6 +368,7 @@ jQuery(function($) { e.preventDefault(); var url = 'ajax.php/'+$(this).attr('href').substr(1); $.dialog(url, 201, function (resp) { + $('input#emailcollab').show(); $('#recipients').text(resp); }); return false;