more infrastructure for notification auto-scroll to comment
This commit is contained in:
@@ -249,6 +249,7 @@ var divmore_height = 400;
|
||||
var last_filestorage_id = null;
|
||||
var mediaPlaying = false;
|
||||
var contentHeightDiff = 0;
|
||||
var gotoAnchor = ((document.location.hash.includes('item_')) ? document.location.hash : '');
|
||||
|
||||
$(function() {
|
||||
$.ajaxSetup({cache: false});
|
||||
@@ -650,6 +651,11 @@ function updateConvItems(mode,data) {
|
||||
collapseHeight();
|
||||
}
|
||||
|
||||
if(gotoAnchor != '') {
|
||||
document.location.hash = gotoAnchor;
|
||||
gotoAnchor = '';
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
function collapseHeight() {
|
||||
|
||||
Reference in New Issue
Block a user