From 852e456d44d2bffeadd2a22a7d47bb9e2e7f125f Mon Sep 17 00:00:00 2001 From: Mario Date: Wed, 18 Nov 2020 20:34:41 +0000 Subject: this is silly but it seems to be required for firefox to stop scrolling in certain conditions --- view/js/main.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'view/js/main.js') 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 -- cgit v1.2.3