1
1
Fork 0

Add title bar notifications to Smoothly

This commit is contained in:
Thomas Willingham 2012-09-17 14:53:17 +01:00
parent dbdc4bcb67
commit 9cabcad36c

View file

@ -47,13 +47,15 @@ function cmtBbClose(id) {
$(".comment-edit-bb-" + id).hide();
}
var doctitle = document.title;
function checkNotify() {
if(document.getElementById("notify-update").innerHTML != "") {
$(document).ready(function(){
var doctitle = document.title;
function checkNotify() {
if(document.getElementById("notify-update").innerHTML != "")
document.title = "("+document.getElementById("notify-update").innerHTML+") " + doctitle;
} else {
else
document.title = doctitle;
};
setInterval(function () {checkNotify();}, 10 * 1000);
}
})
</script>