This commit is contained in:
SBD
2023-11-30 14:04:30 +03:00
parent f86e76615d
commit fb665b409c

View File

@@ -524,15 +524,21 @@ function sendRoute(el, routeID = null){
data: JSON.stringify(obj_w_el_form),
success: function(data){
let data_route_id = data.route_id
// location.href = '/profile'
document.querySelector(".info_profile").innerHTML = data.html
let el_route = document.querySelector(`[data-number-of-route="${routeID}"]`);
el_route.scrollIntoView(true);
let el_route = document.querySelector(`[data-number-of-route="${data_route_id}"]`);
if (routeID){
el_route = document.querySelector(`[data-number-of-route="${routeID}"]`);
}
el_route.scrollIntoView({
behavior:"smooth",
block:'nearest',
inline:'nearest'
});