This commit is contained in:
2023-08-30 15:03:27 +03:00
parent db3d47b36f
commit e852a2b358
2 changed files with 37 additions and 2 deletions

View File

@@ -62,9 +62,10 @@ function technicalSupport(el){
});
}
function mySubscription(el){
// boris changed
$.ajax({
headers: { "X-CSRFToken": $('input[name=csrfmiddlewaretoken]').val() },
url: '/ru/user_account/subscribe/',
url: '/ru/subscribes/show_cur_subscribe/',
type: "POST",
// async: true,
cache: false,
@@ -76,9 +77,10 @@ function mySubscription(el){
if (data.user_alerts) {
getNewMessageSession()
}
document.querySelector(".info_profile").innerHTML = data.html;
// location.href = '/profile'
document.querySelector(".info_profile").innerHTML = data.html;
// document.querySelector(".info_profile").innerHTML = data.html;
let list_div = document.querySelectorAll('.menu_profile div');
list_div.forEach(el=>{ el.classList.remove('selected'); });