From b511cbbdafe6c0df06678e03829ce2860eae8fb3 Mon Sep 17 00:00:00 2001 From: SBD Date: Fri, 28 Feb 2025 17:09:16 +0300 Subject: [PATCH] 0.0.178 routes --- static/v2/js/widgets/w_route_card.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/static/v2/js/widgets/w_route_card.js b/static/v2/js/widgets/w_route_card.js index 49a9414..a79f2d2 100644 --- a/static/v2/js/widgets/w_route_card.js +++ b/static/v2/js/widgets/w_route_card.js @@ -118,7 +118,7 @@ function highlightRoute(el) { } function respondBtnClickEvent(el, authentificated) { - if (!el) return; + if (!el || el.closest('.disabled')) return; if (authentificated !== 'False') { let $parent = el.closest(".w_route_card") let $responde_cont = $parent.querySelector(".respond_route_cont") @@ -135,14 +135,14 @@ function respondBtnClickEvent(el, authentificated) { } function clickedUnregisteredMsgRoute (el) { - if (!el) return; + if (!el || el.closest('.disabled')) return; let $parent = el.closest(".route_card_text_container") $parent.classList.add('clicked'); } function unwrapRouteComment (el){ - if (!el) return; + if (!el || el.closest('.disabled')) return; let $parent = el.closest(".wrapped") if (!$parent) return;