From cb30dc452dedb61c07d25095f48a238dac542346 Mon Sep 17 00:00:00 2001 From: ArtemB Date: Fri, 11 Aug 2023 12:32:19 +0300 Subject: [PATCH] 0.0.84 --- static/js/user_profile.js | 30 ------------------------------ 1 file changed, 30 deletions(-) diff --git a/static/js/user_profile.js b/static/js/user_profile.js index 23a4f87..8d484a6 100644 --- a/static/js/user_profile.js +++ b/static/js/user_profile.js @@ -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) - - } - }); - -}