diff options
author | Thomas Willingham <founder@kakste.com> | 2013-05-28 19:34:32 +0100 |
---|---|---|
committer | Thomas Willingham <founder@kakste.com> | 2013-05-28 19:34:32 +0100 |
commit | 102e13543c5844c592c7feabed1b54940755afd2 (patch) | |
tree | bcb99e49769a74c167c0e9d7f004b44376f0b646 /view | |
parent | af3fc7585666abe9afcdde9827e5bcbab70b08b9 (diff) | |
download | volse-hubzilla-102e13543c5844c592c7feabed1b54940755afd2.tar.gz volse-hubzilla-102e13543c5844c592c7feabed1b54940755afd2.tar.bz2 volse-hubzilla-102e13543c5844c592c7feabed1b54940755afd2.zip |
Add notification count to titles.
Diffstat (limited to 'view')
-rw-r--r-- | view/theme/redbasic/js/redbasic.js | 11 |
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 |