From 237666d96ffff9b6c797de0c21652a5a94068cb4 Mon Sep 17 00:00:00 2001 From: SBD Date: Sat, 25 Nov 2023 15:34:54 +0300 Subject: [PATCH] 0.8.398 --- static/js/user_profile_2.js | 7 +++++++ templates/widgets/profile/w_button_for_profile_menu.html | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/static/js/user_profile_2.js b/static/js/user_profile_2.js index 7f5c12d..0209894 100644 --- a/static/js/user_profile_2.js +++ b/static/js/user_profile_2.js @@ -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({ diff --git a/templates/widgets/profile/w_button_for_profile_menu.html b/templates/widgets/profile/w_button_for_profile_menu.html index 45770e4..9367a96 100644 --- a/templates/widgets/profile/w_button_for_profile_menu.html +++ b/templates/widgets/profile/w_button_for_profile_menu.html @@ -19,7 +19,7 @@ {% elif sel_page_name != 'logoout' %} - + {% endif %} {% endif %} {{ title }}