From: Thomas Willingham Date: Mon, 17 Sep 2012 13:54:40 +0000 (+0100) Subject: Add titlebar notifications to Dispy. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=11eebf7091d6003cd7f4443d48b06fd21f1d0080;p=friendica.git Add titlebar notifications to Dispy. --- 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); +}) +