1.1.26 upd msg counter and styles for news
This commit is contained in:
@@ -10,9 +10,10 @@ function update_count_unread_messages (data) {
|
||||
if (!list_unrd_parent[i].classList.contains("showed")){
|
||||
// list_unrd_parent[i].classList.toggle("showed")
|
||||
|
||||
list_unrd[i].innerHTML = data.unread_msgs_count.toString()
|
||||
// list_unrd[i].innerHTML = data.unread_msgs_count.toString()
|
||||
} else {
|
||||
list_unrd[i].innerHTML = data.unread_msgs_count.toString()
|
||||
let current_count = parseInt(list_unrd[i].innerHTML);
|
||||
list_unrd[i].innerHTML = (current_count + 1).toString();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -41,7 +41,7 @@ window.onload = function (){
|
||||
// }
|
||||
let chats = document.querySelector(`[data-ajax-url='chats']`)
|
||||
if (chats){
|
||||
deleteMarkerMessages()
|
||||
// deleteMarkerMessages()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -93,7 +93,7 @@ function select_tab_profile (el,url,owner_type=null, check_orders_required) {
|
||||
if (window.location.href.includes("profile")){
|
||||
selectTabProfileIfHisNotSelected(url)
|
||||
}
|
||||
deleteMarkerMessages(el)
|
||||
// deleteMarkerMessages(el)
|
||||
checkStatesAfterTransitionToAnotherTabProfile()
|
||||
goToChatIfChat()
|
||||
if (window.location.href.includes("chat") || window.location.href.includes("support")) {
|
||||
|
||||
Reference in New Issue
Block a user