From 11eebf7091d6003cd7f4443d48b06fd21f1d0080 Mon Sep 17 00:00:00 2001 From: Thomas Willingham Date: Mon, 17 Sep 2012 14:54:40 +0100 Subject: [PATCH] Add titlebar notifications to Dispy. --- view/theme/dispy/bottom.tpl | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/view/theme/dispy/bottom.tpl b/view/theme/dispy/bottom.tpl index 0bcc3aca41..82f0201703 100644 --- a/view/theme/dispy/bottom.tpl +++ b/view/theme/dispy/bottom.tpl @@ -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); +}) + -- 2.39.5