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:
parent
c86ae98d04
commit
79c13c7f31
3
public/css/style.css
vendored
3
public/css/style.css
vendored
@ -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
10
public/js/main.js
vendored
@ -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'));
|
||||
|
@ -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">
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user