diff --git a/static/js/user_profile_2.js b/static/js/user_profile_2.js
index ab6b4f7..fa25420 100644
--- a/static/js/user_profile_2.js
+++ b/static/js/user_profile_2.js
@@ -9,7 +9,7 @@ profile_tabs_f_static_map = new Map([
['dashboard','dashboard']
])
-function select_tab_profile (el,url,owner_type=null) {
+function select_tab_profile (el,url,owner_type=null, check_orders_required) {
let data = {}
let confirm_url = `/user_account/${url}/`
if (url.includes('subscribe')){
@@ -20,7 +20,12 @@ function select_tab_profile (el,url,owner_type=null) {
}
} else if (url.includes('get_routes')){
confirm_url = `/routes/${url}/`
+ } else if(url.includes('my_subscribe')){
+ data = {
+ 'check_orders_required': check_orders_required
+ }
}
+
if (window.location.href.includes("profile")){
document.querySelector(".info_profile").innerHTML = ''
}
@@ -95,8 +100,9 @@ function select_tab_profile (el,url,owner_type=null) {
}
}
}
- if(window.location.href.includes("my_subscribe") && data.check_orders_required === true) {
- select_tab_profile()
+ if(window.location.href.includes("my_subscribe") ) {
+ select_tab_profile(el,url,owner_type=null, data.check_orders_required )
+ return
}
setCokie(365,'twb_new_messages','false')
@@ -754,7 +760,7 @@ function sendMessageEnter (e,id_ticket,sender,receiver){
}
}
-function send_subscribe (id,for_movers,subscribe){
+function send_subscribe (id, for_movers, subscribe){
if (!for_movers) {
let data = {
'subscribe_id': id
diff --git a/templates/blocks/profile/b_profile.html b/templates/blocks/profile/b_profile.html
index 121c57c..902499d 100644
--- a/templates/blocks/profile/b_profile.html
+++ b/templates/blocks/profile/b_profile.html
@@ -16,7 +16,7 @@