0.0.48 w route card

This commit is contained in:
SBD
2025-01-18 15:08:26 +03:00
parent 2a7a666f7d
commit feb2b9d697
3 changed files with 14 additions and 8 deletions

View File

@@ -12,7 +12,8 @@ function changeRoute(el) {
data: data,
data_type: 'json',
success: (res) => {
if (!res.html) return;
$(".info_profile")[0].innerHTML = res.html;
}, error: (res) => {
}
@@ -45,7 +46,7 @@ function deleteRoute(el) {
}
function raiseRoute(el) {
if (!el) return;
if (!el || el.dataset.actions_count === '0') return;
let $parent = el.closest(".w_route_card")
if (!$parent) return;
@@ -68,7 +69,7 @@ function raiseRoute(el) {
}
function highlightRoute(el) {
if (!el) return;
if (!el || el.dataset.actions_count === '0') return;
let $parent = el.closest(".w_route_card")
if (!$parent) return;