From 97d41e30b8a01070c17e3a957d475a6cc79ae70c Mon Sep 17 00:00:00 2001 From: borissedw Date: Mon, 7 Aug 2023 14:55:21 +0300 Subject: [PATCH] 0.0.53 --- static/js/user_profile(boris).js | 5 ++++- templates/blocks/profile/b_chats.html | 5 +++-- .../blocks/profile/b_messages_container.html | 15 +++++++-------- templates/blocks/profile/b_support_chat.html | 5 +++-- 4 files changed, 17 insertions(+), 13 deletions(-) diff --git a/static/js/user_profile(boris).js b/static/js/user_profile(boris).js index 41716a0..c0f8706 100644 --- a/static/js/user_profile(boris).js +++ b/static/js/user_profile(boris).js @@ -210,12 +210,15 @@ function sendMessage(id_ticket=null,sender,receiver){ success: function(data){ document.querySelector(".container-messages").innerHTML = data.html; + document.querySelector(".enter-message-inp").value = null + document.querySelector(".enter-message-inp").focus() }, error: function (data){ document.querySelector(".container-messages").innerHTML = data.responseJSON.error; - + document.querySelector(".enter-message-inp").value = null + document.querySelector(".enter-message-inp").focus() } }); } diff --git a/templates/blocks/profile/b_chats.html b/templates/blocks/profile/b_chats.html index 9004a28..ac821e3 100644 --- a/templates/blocks/profile/b_chats.html +++ b/templates/blocks/profile/b_chats.html @@ -50,8 +50,9 @@ - - {% include "blocks/profile/b_messages_container.html" %} +
+ {% include "blocks/profile/b_messages_container.html" %} +