Add titlebar notifications to Dispy.
This commit is contained in:
parent
9cabcad36c
commit
11eebf7091
|
@ -56,4 +56,16 @@ function checkNotify() {
|
|||
};
|
||||
setInterval(function () {checkNotify();}, 10 * 1000);
|
||||
}
|
||||
|
||||
$(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);
|
||||
})
|
||||
|
||||
</script>
|
||||
|
|
Loading…
Reference in a new issue