Add title bar notifications to Smoothly
This commit is contained in:
parent
dbdc4bcb67
commit
9cabcad36c
|
@ -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>
|
||||||
|
|
Loading…
Reference in a new issue