]> git.mxchange.org Git - friendica.git/commitdiff
Add title bar notifications to Smoothly
authorThomas Willingham <founder@kakste.com>
Mon, 17 Sep 2012 13:53:17 +0000 (14:53 +0100)
committerThomas Willingham <founder@kakste.com>
Mon, 17 Sep 2012 13:53:17 +0000 (14:53 +0100)
view/theme/smoothly/bottom.tpl

index 800dc6370651bccd430afd3e5d3f528ee734e8ae..06faa9c5612039c663ca54fc70b335f608092ca6 100644 (file)
@@ -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);
+       })
 </script>