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() {
|
var updateTitle = function() {
|
||||||
document.title =
|
var prefix = "";
|
||||||
($(".unread").length ? "[NEW PM] " : "") +
|
var unrTabs = $(".unread");
|
||||||
"("+userlist.count()+") "+
|
if (unrTabs.length === 1 && unrTabs[0].getAttribute('data-tab') == "tab-main") {
|
||||||
hub_hubname;
|
prefix = "[NEW] "
|
||||||
|
} else if (unrTabs.length > 0) {
|
||||||
|
prefix = "[NEW PM] "
|
||||||
|
}
|
||||||
|
|
||||||
|
document.title = prefix + hub_hubname + "("+userlist.count()+") "
|
||||||
};
|
};
|
||||||
|
|
||||||
var sock = {};
|
var sock = {};
|
||||||
|
Loading…
Reference in New Issue
Block a user