aboutsummaryrefslogtreecommitdiffstats
path: root/view/js
diff options
context:
space:
mode:
Diffstat (limited to 'view/js')
-rw-r--r--view/js/main.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/view/js/main.js b/view/js/main.js
index f415637bd..227f0b7fe 100644
--- a/view/js/main.js
+++ b/view/js/main.js
@@ -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() {