]> git.mxchange.org Git - friendica.git/commitdiff
diabook: add notification in website-title, whenever new notifications arrive
authortomtom84 <thomas.bierey@gmx.de>
Sun, 8 Jul 2012 19:50:17 +0000 (21:50 +0200)
committertomtom84 <thomas.bierey@gmx.de>
Sun, 8 Jul 2012 19:50:17 +0000 (21:50 +0200)
view/theme/diabook/bottom.tpl
view/theme/diabook/nav.tpl

index 50a15788de8a99f86a3e1c6d1f445260d47c9159..0ab7de78e769f45ca3187603b6f84b58f1357e15 100644 (file)
@@ -42,6 +42,7 @@ $(document).ready(function() {
             
        });
        
+       
        function tautogrow(id){
                $("textarea#comment-edit-text-" +id).autogrow();        
        };
@@ -128,6 +129,17 @@ $(document).ready(function() {
        function cmtBbClose(id) {
        $(".comment-edit-bb-" + id).hide();
        }
+       
+       $(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>
index 4165656bd4d2963f9ef12aec45f824a8979a393e..1424c0e39a179f4bd42c98e3db5c666c952754e3 100644 (file)
 
 
 <div id="scrollup" style="position: fixed; bottom: 5px; right: 10px;z-index: 97;"><a id="down" onclick="scrolldown()" ><img id="scroll_top_bottom" src="view/theme/diabook/icons/scroll_bottom.png" style="display:cursor !important;" alt="back to top" title="Scroll to bottom"></a></div>
-<div style="position: fixed; bottom: 3px; left: 25px;">$langselector</div>
+<div style="position: fixed; bottom: 61px; left: 6px;">$langselector</div>
 <div style="position: fixed; bottom: 23px; left: 5px;"><a href="http://pad.toktan.org/p/diabook" target="blank" ><img src="view/theme/diabook/icons/bluebug.png" title="report bugs for the theme diabook"/></a></div>