0.0.235
This commit is contained in:
@@ -10,9 +10,7 @@ function writeMessage(el){
|
||||
// enctype: 'json',
|
||||
// data: formData,
|
||||
success: function(data){
|
||||
if (data.user_alerts) {
|
||||
getNewMessageSession()
|
||||
}
|
||||
|
||||
// location.href = '/profile'
|
||||
document.querySelector(".info_profile").innerHTML = data.html;
|
||||
|
||||
@@ -22,6 +20,7 @@ function writeMessage(el){
|
||||
|
||||
//updating the url without reloading
|
||||
window.history.pushState(null, null, '/ru/profile/page/chat/')
|
||||
middleWareJS()
|
||||
|
||||
},
|
||||
error: function (data, exception){
|
||||
@@ -44,10 +43,7 @@ function technicalSupport(el){
|
||||
// enctype: 'json',
|
||||
// data: formData,
|
||||
success: function(data){
|
||||
if (data.user_alerts) {
|
||||
getNewMessageSession()
|
||||
}
|
||||
getNewMessageSession()
|
||||
|
||||
|
||||
// location.href = '/profile'
|
||||
document.querySelector(".info_profile").innerHTML = data.html;
|
||||
@@ -58,7 +54,7 @@ function technicalSupport(el){
|
||||
|
||||
//updating the url without reloading
|
||||
window.history.pushState(null, null, '/ru/profile/page/support/')
|
||||
|
||||
middleWareJS()
|
||||
|
||||
},
|
||||
error: function (data, exception){
|
||||
@@ -80,9 +76,7 @@ function mySubscription(el){
|
||||
// enctype: 'json',
|
||||
// data: formData,
|
||||
success: function(data){
|
||||
if (data.user_alerts) {
|
||||
getNewMessageSession()
|
||||
}
|
||||
|
||||
document.querySelector(".info_profile").innerHTML = data.html;
|
||||
|
||||
// location.href = '/profile'
|
||||
@@ -94,7 +88,7 @@ function mySubscription(el){
|
||||
|
||||
//updating the url without reloading
|
||||
window.history.pushState(null, null, '/ru/profile/page/my_subscribe/')
|
||||
|
||||
middleWareJS()
|
||||
|
||||
},
|
||||
error: function (data, exception){
|
||||
@@ -115,9 +109,7 @@ function myProfile(el){
|
||||
// enctype: 'json',
|
||||
// data: formData,
|
||||
success: function(data){
|
||||
if (data.user_alerts) {
|
||||
getNewMessageSession()
|
||||
}
|
||||
|
||||
|
||||
// location.href = '/profile'
|
||||
document.querySelector(".info_profile").innerHTML = data.html;
|
||||
@@ -128,7 +120,7 @@ function myProfile(el){
|
||||
|
||||
//updating the url without reloading
|
||||
window.history.pushState(null, null, '/ru/profile/page/change_profile/')
|
||||
|
||||
middleWareJS()
|
||||
|
||||
},
|
||||
error: function (data, exception){
|
||||
@@ -173,9 +165,7 @@ function removeRoute(el) {
|
||||
// enctype: 'json',
|
||||
data: JSON.stringify(remove_data) ,
|
||||
success: function(data){
|
||||
if (data.user_alerts) {
|
||||
getNewMessageSession()
|
||||
}
|
||||
|
||||
|
||||
// location.href = '/profile'
|
||||
document.querySelector(".info_profile").innerHTML = data.html;
|
||||
@@ -187,7 +177,7 @@ function removeRoute(el) {
|
||||
//updating the url without reloading
|
||||
window.history.pushState(null, null, '/ru/profile/page/change_profile/')
|
||||
|
||||
|
||||
middleWareJS()
|
||||
},
|
||||
error: function (data, exception){
|
||||
console.log(400)
|
||||
@@ -280,10 +270,10 @@ function searchTown(el){
|
||||
success: function(data){
|
||||
el.style.background = 'white url("/static/img/png/icon-arrow.svg") no-repeat calc(100% - 15px) center';
|
||||
|
||||
getNewMessageSession()
|
||||
|
||||
|
||||
return insertSearchList(data, el.name + '_list');
|
||||
|
||||
middleWareJS()
|
||||
},
|
||||
error: function (data){
|
||||
|
||||
@@ -494,9 +484,7 @@ function sendRoute(el, routeID = null){
|
||||
// enctype: 'json',
|
||||
data: JSON.stringify(obj_w_el_form),
|
||||
success: function(data){
|
||||
if (data.user_alerts) {
|
||||
getNewMessageSession()
|
||||
}
|
||||
|
||||
|
||||
// location.href = '/profile'
|
||||
document.querySelector(".info_profile").innerHTML = data.html
|
||||
@@ -505,7 +493,7 @@ function sendRoute(el, routeID = null){
|
||||
let my_routes = document.getElementById("my_routes_id")
|
||||
list_div.forEach(el=>{ el.classList.remove('selected'); });
|
||||
my_routes.classList.add('selected')
|
||||
|
||||
middleWareJS()
|
||||
|
||||
},
|
||||
error: function (data, exception){
|
||||
@@ -589,9 +577,7 @@ function createRoute(el, owner_type){
|
||||
// enctype: 'json',
|
||||
data: JSON.stringify(obj),
|
||||
success: function(data){
|
||||
if (data.user_alerts) {
|
||||
getNewMessageSession()
|
||||
}
|
||||
|
||||
|
||||
// location.href = '/profile'
|
||||
document.querySelector(".info_profile").innerHTML = data.html
|
||||
@@ -606,7 +592,7 @@ function createRoute(el, owner_type){
|
||||
} else {
|
||||
window.history.pushState(null, null, '/ru/profile/page/create_route_for_mover/')
|
||||
}
|
||||
|
||||
middleWareJS()
|
||||
|
||||
|
||||
|
||||
@@ -643,9 +629,7 @@ function getRoute(el){
|
||||
// enctype: 'json',
|
||||
// data: formData,
|
||||
success: function(data){
|
||||
if (data.user_alerts) {
|
||||
getNewMessageSession()
|
||||
}
|
||||
|
||||
|
||||
// location.href = '/profile'
|
||||
document.querySelector(".info_profile").innerHTML = data.html;
|
||||
@@ -656,7 +640,7 @@ function getRoute(el){
|
||||
|
||||
window.history.pushState(null, null, '/ru/profile/page/my_routes/')
|
||||
|
||||
|
||||
middleWareJS()
|
||||
|
||||
},
|
||||
error: function (data, exception){
|
||||
|
||||
Reference in New Issue
Block a user