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(); $(".comment-edit-bb-" + id).hide();
} }
var doctitle = document.title;
function checkNotify() { $(document).ready(function(){
if(document.getElementById("notify-update").innerHTML != "") { var doctitle = document.title;
document.title = "("+document.getElementById("notify-update").innerHTML+") " + doctitle; function checkNotify() {
} else { if(document.getElementById("notify-update").innerHTML != "")
document.title = doctitle; document.title = "("+document.getElementById("notify-update").innerHTML+") " + doctitle;
}; else
setInterval(function () {checkNotify();}, 10 * 1000); document.title = doctitle;
} };
setInterval(function () {checkNotify();}, 10 * 1000);
})
</script> </script>