diff options
author | Mario <mario@mariovavti.com> | 2020-11-18 20:34:41 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2020-11-18 20:34:41 +0000 |
commit | 852e456d44d2bffeadd2a22a7d47bb9e2e7f125f (patch) | |
tree | f0d82d07cc526cb8eaeee0e22f15200c948c3956 | |
parent | 18136788e4bfd86b6d6492daeccf270222d0b5fc (diff) | |
download | volse-hubzilla-852e456d44d2bffeadd2a22a7d47bb9e2e7f125f.tar.gz volse-hubzilla-852e456d44d2bffeadd2a22a7d47bb9e2e7f125f.tar.bz2 volse-hubzilla-852e456d44d2bffeadd2a22a7d47bb9e2e7f125f.zip |
this is silly but it seems to be required for firefox to stop scrolling in certain conditions
-rw-r--r-- | view/js/main.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/view/js/main.js b/view/js/main.js index 6d39adc39..09afb4da4 100644 --- a/view/js/main.js +++ b/view/js/main.js @@ -364,7 +364,6 @@ function handle_comment_form(e) { function commentClose(obj, id) { if(obj.value === '') { - obj.value = aStr.comment; $("#comment-edit-text-" + id).removeClass("expanded"); $("#mod-cmnt-wrap-" + id).hide(); $("#comment-tools-" + id).hide(); @@ -619,6 +618,8 @@ function updatePageItems(mode, data) { function updateConvItems(mode,data) { + var scroll_position = $(window).scrollTop(); + if(mode !== 'update') $(document).trigger('hz:updateConvItems'); @@ -750,6 +751,8 @@ function updateConvItems(mode,data) { }); + $(window).scrollTop(scroll_position); + if(followUpPageLoad) sse_bs_counts(); else |