1
0
Fork 0

Add titlebar notifications to Dispy.

This commit is contained in:
Thomas Willingham 2012-09-17 14:54:40 +01:00
parent 9cabcad36c
commit 11eebf7091

View file

@ -56,4 +56,16 @@ function checkNotify() {
}; };
setInterval(function () {checkNotify();}, 10 * 1000); 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> </script>