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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user