mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-20 10:35:15 +00:00
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
1 changed files with 13 additions and 10 deletions
|
@ -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);
|
||||
})
|
||||
$(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);
|
||||
});
|
Loading…
Reference in a new issue