0.0.140 routes
This commit is contained in:
@@ -116,14 +116,19 @@ function highlightRoute(el) {
|
||||
request.ajaxRequest()
|
||||
}
|
||||
|
||||
function respondBtnClickEvent(el) {
|
||||
function respondBtnClickEvent(el, authentificated) {
|
||||
if (!el) return;
|
||||
let $parent = el.closest(".w_route_card")
|
||||
let $responde_cont = $parent.querySelector(".respond_route_cont")
|
||||
if (window.innerWidth < 1160) $responde_cont = $parent.querySelector(".respond_route_cont.mobile")
|
||||
if (authentificated !== 'False') {
|
||||
let $parent = el.closest(".w_route_card")
|
||||
let $responde_cont = $parent.querySelector(".respond_route_cont")
|
||||
if (window.innerWidth < 1160) $responde_cont = $parent.querySelector(".respond_route_cont.mobile")
|
||||
|
||||
$(el).fadeOut(500);
|
||||
sleep(500).then(() => {
|
||||
$($responde_cont).fadeIn(500);
|
||||
})
|
||||
$(el).fadeOut(500);
|
||||
sleep(500).then(() => {
|
||||
$($responde_cont).fadeIn(500);
|
||||
})
|
||||
} else {
|
||||
$(".b_login_modal").addClass('open');
|
||||
$("body")[0].style.overflow = "hidden";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user