From 7f2db62c476709afcc1f146f4e54416871964366 Mon Sep 17 00:00:00 2001 From: borissedw Date: Sun, 6 Aug 2023 14:39:41 +0300 Subject: [PATCH] 0.0.43 --- static/js/find_route.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/static/js/find_route.js b/static/js/find_route.js index 52245c6..288149f 100644 --- a/static/js/find_route.js +++ b/static/js/find_route.js @@ -23,3 +23,11 @@ function show_inf_carrier (el) { } +function open_chat (user_id){ + event.preventDefault() + let host = window.location.origin + let user_id_ = user_id.toString() + let href = host + '/ru/profile/chat/' + user_id_ + // window.location.href = host + '/profile/chat/' + user_id + window.location.replace(href) +} \ No newline at end of file