0.0.42 fix form

This commit is contained in:
SBD
2025-01-16 17:18:12 +03:00
parent b3e8d75539
commit 529b324817
8 changed files with 68 additions and 23 deletions

View File

@@ -0,0 +1,22 @@
function changeRoute(el) {
if (!el) return;
let $parent = el.closest(".w_route_card")
if (!$parent) return;
let data = {
'route_id': $parent.dataset.route_id,
'owner_type': $parent.dataset.owner_type,
}
let request = new api({
url: '/routes/create_or_change_route/',
data: data,
data_type: 'json',
success: (res) => {
}, error: (res) => {
}
});
request.ajaxRequest()
}