this might stop page scrolls while new updates drop in

This commit is contained in:
Mario Vavti 2015-03-26 10:43:09 +01:00
parent e0a0fc507f
commit a5f410d587

View File

@ -666,8 +666,10 @@ function liveUpdate() {
else
update_mode = 'append';
}
else
else {
update_mode = 'update';
var orgHeight = $("#region_2").height();
}
$.get(update_url, function(data) {
page_load = false;
@ -676,6 +678,10 @@ function liveUpdate() {
$("#page-spinner").spin(false);
$("#profile-jot-text-loading").spin(false);
if(update_mode === 'update') {
$(window).scrollTop($(window).scrollTop() + $("#region_2").height() - orgHeight);
}
in_progress = false;
// FIXME - the following lines were added so that almost