fix error updating pagetitle with notify count if not logged in locally (no notify count available)
This commit is contained in:
parent
19f674c29d
commit
400f3baee9
@ -89,10 +89,13 @@ $('.savedsearchterm').hover(
|
|||||||
$(document).ready(function(){
|
$(document).ready(function(){
|
||||||
var doctitle = document.title;
|
var doctitle = document.title;
|
||||||
function checkNotify() {
|
function checkNotify() {
|
||||||
if(document.getElementById("notify-update").innerHTML != "")
|
var notifyUpdateElem = document.getElementById('notify-update');
|
||||||
document.title = "("+document.getElementById("notify-update").innerHTML+") " + doctitle;
|
if(typeof(notifyUpdateElem) != 'undefined') {
|
||||||
|
if(notifyUpdateElem.innerHTML != "")
|
||||||
|
document.title = "("+notifyUpdateElem.innerHTML+") " + doctitle;
|
||||||
else
|
else
|
||||||
document.title = doctitle;
|
document.title = doctitle;
|
||||||
|
}
|
||||||
};
|
};
|
||||||
setInterval(function () {checkNotify();}, 10 * 1000);
|
setInterval(function () {checkNotify();}, 10 * 1000);
|
||||||
})
|
});
|
Reference in New Issue
Block a user