diff options
author | redmatrix <mike@macgirvin.com> | 2016-09-24 20:10:20 -0700 |
---|---|---|
committer | redmatrix <mike@macgirvin.com> | 2016-09-24 20:10:20 -0700 |
commit | bfc2552841ce0a018e70dae16fddf690a892b49d (patch) | |
tree | 7d4e4db2d8872c72480ee332f6660efda19acb57 /view | |
parent | 39dc4fc99224659ec3f7b808f419892b81052323 (diff) | |
download | volse-hubzilla-bfc2552841ce0a018e70dae16fddf690a892b49d.tar.gz volse-hubzilla-bfc2552841ce0a018e70dae16fddf690a892b49d.tar.bz2 volse-hubzilla-bfc2552841ce0a018e70dae16fddf690a892b49d.zip |
more infrastructure for notification auto-scroll to comment
Diffstat (limited to 'view')
-rw-r--r-- | view/js/main.js | 6 |
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() { |