Use a the updateTitle() function to update page titles

This commit is contained in:
2017-10-02 19:48:37 +02:00
parent d3cd6a884e
commit 1bf2a87726
2 changed files with 13 additions and 2 deletions

View File

@@ -1,3 +1,14 @@
var page_title = document.title;
function updateTitle(unread_on_load, page_title){
if (unread_on_load > 0){
document.title = '(' + unread_on_load + ') ' + page_title;
} else {
document.title = page_title;
}
}
/* Status Bar */
function statusBarClear(delay_class, delay_html){
var statusBar = $("#status-bar");