Add notification count to titles.

This commit is contained in:
Thomas Willingham 2013-05-28 19:34:32 +01:00
parent af3fc75856
commit 102e13543c

View File

@ -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);
})