Add notification count to titles.
This commit is contained in:
parent
af3fc75856
commit
102e13543c
@ -86,4 +86,13 @@ $('.savedsearchterm').hover(
|
||||
});
|
||||
|
||||
|
||||
|
||||
$(document).ready(function(){
|
||||
var doctitle = document.title;
|
||||
function checkNotify() {
|
||||
if(document.getElementById("notify-update").innerHTML != "")
|
||||
document.title = "("+document.getElementById("notify-update").innerHTML+") " + doctitle;
|
||||
else
|
||||
document.title = doctitle;
|
||||
};
|
||||
setInterval(function () {checkNotify();}, 10 * 1000);
|
||||
})
|
Reference in New Issue
Block a user