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;