0.0.50 w route card

This commit is contained in:
SBD
2025-01-21 00:10:01 +03:00
parent a8335f10ee
commit 8291f956c2
2 changed files with 14 additions and 1 deletions

View File

@@ -103,6 +103,11 @@ function highlightRoute(el) {
data_type: 'json',
success: (res) => {
$parent.classList.add('highlighted');
$('.route_btn[data-action="highlight"]').each((i, el) => {
el.dataset.actions_count = res.remains_route_highlight_count;
el.querySelector('.route_btn_data').innerHTML = el.querySelector('.route_btn_data').innerHTML.split(':')[0] + `: ${res.remains_route_highlight_count}`;
})
}, error: (res) => {
}