client: separate NEW vs NEW-PM titles, move user count to the end of the title
This commit is contained in:
parent
9060b87e94
commit
226e6751c6
@ -765,10 +765,15 @@ var toggle_joinparts = function(ev) {
|
||||
/* */
|
||||
|
||||
var updateTitle = function() {
|
||||
document.title =
|
||||
($(".unread").length ? "[NEW PM] " : "") +
|
||||
"("+userlist.count()+") "+
|
||||
hub_hubname;
|
||||
var prefix = "";
|
||||
var unrTabs = $(".unread");
|
||||
if (unrTabs.length === 1 && unrTabs[0].getAttribute('data-tab') == "tab-main") {
|
||||
prefix = "[NEW] "
|
||||
} else if (unrTabs.length > 0) {
|
||||
prefix = "[NEW PM] "
|
||||
}
|
||||
|
||||
document.title = prefix + hub_hubname + "("+userlist.count()+") "
|
||||
};
|
||||
|
||||
var sock = {};
|
||||
|
Loading…
Reference in New Issue
Block a user