0.0.125 add url replace menu_profile
This commit is contained in:
@@ -20,6 +20,9 @@ function writeMessage(el){
|
||||
list_div.forEach(el=>{ el.classList.remove('selected'); });
|
||||
el.classList.add('selected')
|
||||
|
||||
//updating the url without reloading
|
||||
window.history.pushState(null, null, '/ru/profile/page/chat/')
|
||||
|
||||
},
|
||||
error: function (data, exception){
|
||||
console.log(400)
|
||||
@@ -53,6 +56,9 @@ function technicalSupport(el){
|
||||
list_div.forEach(el=>{ el.classList.remove('selected'); });
|
||||
el.classList.add('selected')
|
||||
|
||||
//updating the url without reloading
|
||||
window.history.pushState(null, null, '/ru/profile/page/support/')
|
||||
|
||||
|
||||
},
|
||||
error: function (data, exception){
|
||||
@@ -86,6 +92,9 @@ function mySubscription(el){
|
||||
list_div.forEach(el=>{ el.classList.remove('selected'); });
|
||||
el.classList.add('selected')
|
||||
|
||||
//updating the url without reloading
|
||||
window.history.pushState(null, null, '/ru/profile/page/my_subscribe/')
|
||||
|
||||
|
||||
},
|
||||
error: function (data, exception){
|
||||
@@ -117,6 +126,9 @@ function myProfile(el){
|
||||
list_div.forEach(el=>{ el.classList.remove('selected'); });
|
||||
el.classList.add('selected')
|
||||
|
||||
//updating the url without reloading
|
||||
window.history.pushState(null, null, '/ru/profile/page/change_profile/')
|
||||
|
||||
|
||||
},
|
||||
error: function (data, exception){
|
||||
@@ -492,6 +504,14 @@ function createRoute(el, owner_type){
|
||||
list_div.forEach(el=>{ el.classList.remove('selected'); });
|
||||
el.classList.add('selected')
|
||||
|
||||
//updating the url without reloading
|
||||
if(el.id == 'customer'){
|
||||
window.history.pushState(null, null, '/ru/profile/page/create_route_for_customer/')
|
||||
} else {
|
||||
window.history.pushState(null, null, '/ru/profile/page/create_route_for_mover/')
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
//get dynamic value
|
||||
@@ -538,6 +558,9 @@ function getRoute(el){
|
||||
list_div.forEach(el=>{ el.classList.remove('selected'); });
|
||||
el.classList.add('selected')
|
||||
|
||||
window.history.pushState(null, null, '/ru/profile/page/my_routes/')
|
||||
|
||||
|
||||
|
||||
},
|
||||
error: function (data, exception){
|
||||
@@ -659,5 +682,3 @@ function RequestCommercialOffer (el){
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user