Add notification count to titles.
This commit is contained in:
@@ -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