hide new queets bar on stream change

This commit is contained in:
Hannes Mannerheim 2013-08-20 00:16:01 +02:00
parent 8db695d3f6
commit 12675b5504
2 changed files with 4 additions and 2 deletions

View File

@ -391,6 +391,7 @@ function setNewCurrentStream(stream,actionOnSuccess,setLocation) {
checkForNewQueetsInterval=window.setInterval(function(){checkForNewQueets()},window.timeBetweenPolling); // start interval again
remove_spinner();
$('#feed-body').html(''); // empty feed only now so the scrollers don't flicker on and off
$('#new-queets-bar').parent().addClass('hidden'); document.title = window.siteTitle; // hide new queets bar if it's visible there
addToFeed(user_data, false,'visible'); // add stream items to feed element
$('#feed').animate({opacity:'1'},150); // fade in
$('body').removeClass('loading-older');$('body').removeClass('loading-newer');
@ -423,6 +424,7 @@ function setNewCurrentStream(stream,actionOnSuccess,setLocation) {
checkForNewQueetsInterval=window.setInterval(function(){checkForNewQueets()},window.timeBetweenPolling); // start interval again
remove_spinner();
$('#feed-body').html(''); // empty feed only now so the scrollers don't flicker on and off
$('#new-queets-bar').parent().addClass('hidden'); document.title = window.siteTitle; // hide new queets bar if it's visible there
addToFeed(queet_data, false,'visible'); // add stream items to feed element
$('#feed').animate({opacity:'1'},150); // fade in
$('body').removeClass('loading-older');$('body').removeClass('loading-newer');

View File

@ -709,13 +709,13 @@ function checkForNewQueets() {
}
$('#new-queets-bar').html(new_queets_num + q_txt);
}
}
}
}
/* ·
·
· Show hidden queets when user clicks on new-queets-bar