Compare commits
2 Commits
54b6d9d37e
...
94feb77a71
| Author | SHA1 | Date | |
|---|---|---|---|
| 94feb77a71 | |||
| 8eb1d22ae3 |
@@ -137,6 +137,40 @@ 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;
|
||||||
|
//
|
||||||
|
// let list_div = document.querySelectorAll('.menu_profile div');
|
||||||
|
// list_div.forEach(el=>{ el.classList.remove('selected'); });
|
||||||
|
// el.classList.add('selected')
|
||||||
|
//
|
||||||
|
//
|
||||||
|
// },
|
||||||
|
// error: function (data, exception){
|
||||||
|
// console.log(400)
|
||||||
|
//
|
||||||
|
// }
|
||||||
|
// });
|
||||||
|
//
|
||||||
|
// }
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -31,6 +31,9 @@
|
|||||||
<img class="svg" src="/static/img/svg/User.svg">
|
<img class="svg" src="/static/img/svg/User.svg">
|
||||||
<a href="#">Мой профиль</a>
|
<a href="#">Мой профиль</a>
|
||||||
</div>
|
</div>
|
||||||
|
<div onclick="logOut()">
|
||||||
|
<a href="#"></a>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="info_profile">
|
<div class="info_profile">
|
||||||
{% if not page %}
|
{% if not page %}
|
||||||
|
|||||||
Reference in New Issue
Block a user