Skip to content
Snippets Groups Projects
Commit a42161cc authored by Jared Hancock's avatar Jared Hancock
Browse files

ticket: Auto show "Post Internal Note" tab for limited access agents

parent 4fef53c3
Branches
Tags
No related merge requests found
......@@ -322,7 +322,7 @@ if ($ticket)
else
$action = 'tasks.php?id='.$task->getId();
?>
<div id="task_response_options" class="<?php echo $ticket ? 'ticket_task_actions' : ''; ?> sticky bar stop">
<div id="task_response_options" class="<?php echo $ticket ? 'ticket_task_actions' : ''; ?> sticky bar stop actions">
<ul class="tabs">
<?php
if ($role->hasPerm(TaskModel::PERM_REPLY)) { ?>
......
......@@ -448,7 +448,7 @@ $tcount = $ticket->getThreadEntries($types)->count();
<div id="msg_warning"><?php echo $warn; ?></div>
<?php } ?>
<div class="sticky bar stop" id="response_options">
<div class="sticky bar stop actions" id="response_options">
<ul class="tabs">
<?php
if ($role->hasPerm(TicketModel::PERM_REPLY)) { ?>
......
......@@ -172,6 +172,10 @@ var thread = {
$('div.thread-body a', $container).each(function() {
$(this).attr('target', '_blank');
});
// Open first response option tab if not already active
if (!document.location.hash)
$('.actions .tabs li:visible:first:not(.active) a', $container).trigger('click');
}
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment