From: Thomas Willingham Date: Mon, 17 Sep 2012 13:53:17 +0000 (+0100) Subject: Add title bar notifications to Smoothly X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=9cabcad36c505cd8a0eb93f720c87721c3a603b3;p=friendica.git Add title bar notifications to Smoothly --- diff --git a/view/theme/smoothly/bottom.tpl b/view/theme/smoothly/bottom.tpl index 800dc63706..06faa9c561 100644 --- a/view/theme/smoothly/bottom.tpl +++ b/view/theme/smoothly/bottom.tpl @@ -47,13 +47,15 @@ function cmtBbClose(id) { $(".comment-edit-bb-" + id).hide(); } -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); -} + + $(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); + })