From d69e3c6c1fa8dd80f5f9210d53d60c58cefe3288 Mon Sep 17 00:00:00 2001 From: borissedw Date: Tue, 8 Aug 2023 14:34:32 +0300 Subject: [PATCH] 0.0.70 --- static/js/check_new_messages.js | 7 ++++--- templates/blocks/profile/b_chats.html | 2 +- templates/blocks/profile/b_support_chat.html | 2 +- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/static/js/check_new_messages.js b/static/js/check_new_messages.js index f457de2..954e3a5 100644 --- a/static/js/check_new_messages.js +++ b/static/js/check_new_messages.js @@ -35,9 +35,10 @@ function check_window_tm(){ let intervl = setInterval(function () { window = document.querySelector(".container-messages") - if (window !== null){ - clearInterval(intervl) - checkOpenWindow(window) + if (window === null){ + + } else { + } }, 1000) diff --git a/templates/blocks/profile/b_chats.html b/templates/blocks/profile/b_chats.html index d362b0f..745a263 100644 --- a/templates/blocks/profile/b_chats.html +++ b/templates/blocks/profile/b_chats.html @@ -51,7 +51,7 @@ -
+
{% include "blocks/profile/b_messages_container.html" %}
diff --git a/templates/blocks/profile/b_support_chat.html b/templates/blocks/profile/b_support_chat.html index 4ee69a9..ad66295 100644 --- a/templates/blocks/profile/b_support_chat.html +++ b/templates/blocks/profile/b_support_chat.html @@ -41,7 +41,7 @@ {# {% endfor %}#} {# {% endif %}#} {#
#} -
+
{% include "blocks/profile/b_messages_container.html" %}