diff --git a/static/js/user_profile.js b/static/js/user_profile.js index da4251a..d1d3f30 100644 --- a/static/js/user_profile.js +++ b/static/js/user_profile.js @@ -399,6 +399,11 @@ function sendRoute(el, routeID = null){ // location.href = '/profile' document.querySelector(".info_profile").innerHTML = data.html + let list_div = document.querySelectorAll('.menu_profile div'); + let my_routes = document.getElementById("my_routes_id") + list_div.forEach(el=>{ el.classList.remove('selected'); }); + my_routes.classList.add('selected') + }, error: function (data, exception){ diff --git a/templates/blocks/b_user_profile.html b/templates/blocks/b_user_profile.html index 9752695..6b65c12 100644 --- a/templates/blocks/b_user_profile.html +++ b/templates/blocks/b_user_profile.html @@ -17,7 +17,7 @@ Разместить объявление как перевозчик -
+
Мои объявления