0.0.50 w route card
This commit is contained in:
@@ -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) => {
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user