This commit is contained in:
SBD
2023-11-25 15:34:54 +03:00
parent f6d0486a19
commit 237666d96f
2 changed files with 8 additions and 1 deletions

View File

@@ -88,6 +88,13 @@ function clickONTHEAPROfileBTN (el) {
el_f_click.click()
}
function changeHrefCl (el) {
let dataset = el.dataset
let old_href = dataset['href']
let new_href = old_href + `?mobile=${getInfoAboutUser() === 'mobile'}`
el.setAttribute('href',new_href)
}
function createTicketShow () {
$.ajax({

View File

@@ -19,7 +19,7 @@
<a href="/profile/logout/" class="text_btn_profile logout">
<span class="logout_span">
{% elif sel_page_name != 'logoout' %}
<a href="{% url "profile_page" sel_page_name %}" class="text_btn_profile">
<a onclick="changeHrefCl()" data-href="{% url "profile_page" sel_page_name %}" class="text_btn_profile">
{% endif %}
{% endif %}
{{ title }}