aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Willingham <founder@kakste.com>2013-05-28 19:34:32 +0100
committerThomas Willingham <founder@kakste.com>2013-05-28 19:34:32 +0100
commit102e13543c5844c592c7feabed1b54940755afd2 (patch)
treebcb99e49769a74c167c0e9d7f004b44376f0b646
parentaf3fc7585666abe9afcdde9827e5bcbab70b08b9 (diff)
downloadvolse-hubzilla-102e13543c5844c592c7feabed1b54940755afd2.tar.gz
volse-hubzilla-102e13543c5844c592c7feabed1b54940755afd2.tar.bz2
volse-hubzilla-102e13543c5844c592c7feabed1b54940755afd2.zip
Add notification count to titles.
-rw-r--r--view/theme/redbasic/js/redbasic.js11
1 files changed, 10 insertions, 1 deletions
diff --git a/view/theme/redbasic/js/redbasic.js b/view/theme/redbasic/js/redbasic.js
index 00b8fa39f..c1f67dcd5 100644
--- a/view/theme/redbasic/js/redbasic.js
+++ b/view/theme/redbasic/js/redbasic.js
@@ -86,4 +86,13 @@ $('.savedsearchterm').hover(
});
-
+ $(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);
+ }) \ No newline at end of file