1.1.40 show/hide unanswered_msgs_count
This commit is contained in:
@@ -15,6 +15,10 @@ function update_count_unread_messages(data) {
|
||||
list_unrd_parent[i].classList.toggle("showed");
|
||||
}
|
||||
}
|
||||
} else if(data.unanswered_msgs_count){
|
||||
for (let i = 0; i < list_unrd.length; i++){
|
||||
list_unrd[i].innerHTML = data.unanswered_msgs_count.toString()
|
||||
}
|
||||
} else {
|
||||
for (let i = 0; i < list_unrd.length; i++) {
|
||||
let current_count = parseInt(list_unrd[i].innerHTML);
|
||||
|
||||
Reference in New Issue
Block a user