0.0.84
This commit is contained in:
@@ -137,37 +137,7 @@ function myProfile(el){
|
|||||||
//
|
//
|
||||||
// }
|
// }
|
||||||
|
|
||||||
function logOut() {
|
|
||||||
|
|
||||||
$.ajax({
|
|
||||||
headers: { "X-CSRFToken": $('input[name=csrfmiddlewaretoken]').val() },
|
|
||||||
url: '/ru/user_account/change_profile/',
|
|
||||||
type: "POST",
|
|
||||||
// async: true,
|
|
||||||
cache: false,
|
|
||||||
processData: false,
|
|
||||||
contentType: false,
|
|
||||||
// enctype: 'json',
|
|
||||||
// data: formData,
|
|
||||||
success: function(data){
|
|
||||||
if (data.user_alerts) {
|
|
||||||
getNewMessageSession()
|
|
||||||
}
|
|
||||||
console.log('data received')
|
|
||||||
// location.href = '/profile'
|
|
||||||
document.querySelector(".info_profile").innerHTML = data.html;
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
},
|
|
||||||
error: function (data, exception){
|
|
||||||
console.log(400)
|
|
||||||
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user