From 8599030ccb1a1a206f635a0ea907ff0cdc102e60 Mon Sep 17 00:00:00 2001 From: SBD Date: Sat, 20 Apr 2024 12:30:55 +0300 Subject: [PATCH] 14 --- static/js/user_profile_2.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/static/js/user_profile_2.js b/static/js/user_profile_2.js index 9b21eaa..b78c79c 100644 --- a/static/js/user_profile_2.js +++ b/static/js/user_profile_2.js @@ -766,8 +766,12 @@ function send_subscribe (id,for_movers,subscribe){ // enctype: 'json', data: JSON.stringify(data), success: function (data) { - - document.querySelector(".info_profile").innerHTML = data.html; + if (data.html) { + document.querySelector(".info_profile").innerHTML = data.html; + } + if (data.redirect_url){ + window.location.href = data.redirect_url + } }, error: function (data) {