mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
bug chat notification when logout
This commit is contained in:
@ -280,7 +280,7 @@ $picture = "/assets/img/default-user.png";
|
|||||||
<div class="dropdown-divider"></div>
|
<div class="dropdown-divider"></div>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<a class="dropdown-item" href="<?= site_url("logout") ?>">
|
<a class="dropdown-item" id="btn-log-out" href="<?= site_url("logout") ?>">
|
||||||
<i class="ti ti-logout me-2 ti-sm"></i>
|
<i class="ti ti-logout me-2 ti-sm"></i>
|
||||||
<span class="align-middle"><?= lang("App.menu_logout") ?></span>
|
<span class="align-middle"><?= lang("App.menu_logout") ?></span>
|
||||||
</a>
|
</a>
|
||||||
|
|||||||
@ -1,10 +1,16 @@
|
|||||||
import {showNotificationMessages} from "../components/chat.js";
|
import { showNotificationMessages } from "../components/chat.js";
|
||||||
|
|
||||||
showNotificationMessages($("#chat-notification-list"))
|
$(() => {
|
||||||
|
|
||||||
setInterval(() => {
|
|
||||||
showNotificationMessages($("#chat-notification-list"))
|
|
||||||
},10000)
|
|
||||||
$("#message-notification-dropdown").on("click",(e) => {
|
|
||||||
showNotificationMessages($("#chat-notification-list"))
|
showNotificationMessages($("#chat-notification-list"))
|
||||||
|
const chatNotificationInterval = setInterval(() => {
|
||||||
|
showNotificationMessages($("#chat-notification-list"))
|
||||||
|
}, 10000)
|
||||||
|
$("#message-notification-dropdown").on("click", (e) => {
|
||||||
|
showNotificationMessages($("#chat-notification-list"))
|
||||||
|
})
|
||||||
|
$("#btn-log-out").on("click",() => {
|
||||||
|
clearInterval(chatNotificationInterval)
|
||||||
|
console.log("CLEAR")
|
||||||
|
})
|
||||||
})
|
})
|
||||||
Reference in New Issue
Block a user