diff options
-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 |