1
0
mirror of https://github.com/freescout-helpdesk/freescout.git synced 2024-11-24 11:22:42 +01:00

Show immediately new chat messages

This commit is contained in:
FreeScout 2021-03-01 23:57:07 -08:00
parent c86ae98d04
commit 79c13c7f31
3 changed files with 13 additions and 2 deletions

View File

@ -2467,7 +2467,8 @@ button.conv-checkbox-clear {
.conv-note-block .alert-switch-to-note {
display: none;
}
.conv-note-block #editor_signature {
.conv-note-block #editor_signature,
.conv-type-chat #editor_signature {
display: none;
}
.alert-switch-to-note {

10
public/js/main.js vendored
View File

@ -3172,6 +3172,11 @@ function polycastInit()
e.preventDefault();
});
flashElement($('#conv-layout-main .thread-type-new:first'));
if (convIsChat()) {
setTimeout(function() {
$('#conv-layout-main .thread-type-new:first .view-new-trigger').click();
}, 3000);
}
}
}
@ -3247,6 +3252,11 @@ function polycastInit()
//poly.reconnect();
}
function convIsChat()
{
return $('#conv-layout').hasClass('conv-type-chat');
}
function convGetUserId()
{
return parseInt($('#conv-assignee .conv-user li.active a:first').attr('data-user_id'));

View File

@ -18,7 +18,7 @@
@section('content')
@include('partials/flash_messages')
<div id="conv-layout">
<div id="conv-layout" class="conv-type-{{ strtolower($conversation->getTypeName()) }}">
<div id="conv-layout-header">
<div id="conv-toolbar">