aboutsummaryrefslogtreecommitdiffstats
path: root/view/theme/redbasic
diff options
context:
space:
mode:
Diffstat (limited to 'view/theme/redbasic')
-rw-r--r--view/theme/redbasic/js/redbasic.js23
1 files changed, 13 insertions, 10 deletions
diff --git a/view/theme/redbasic/js/redbasic.js b/view/theme/redbasic/js/redbasic.js
index c1f67dcd5..eecd46d96 100644
--- a/view/theme/redbasic/js/redbasic.js
+++ b/view/theme/redbasic/js/redbasic.js
@@ -86,13 +86,16 @@ $('.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
+$(document).ready(function(){
+ var doctitle = document.title;
+ function checkNotify() {
+ var notifyUpdateElem = document.getElementById('notify-update');
+ if(typeof(notifyUpdateElem) != 'undefined') {
+ if(notifyUpdateElem.innerHTML != "")
+ document.title = "("+notifyUpdateElem.innerHTML+") " + doctitle;
+ else
+ document.title = doctitle;
+ }
+ };
+ setInterval(function () {checkNotify();}, 10 * 1000);
+}); \ No newline at end of file