diff options
author | Mario <mario@mariovavti.com> | 2023-01-05 18:21:49 +0100 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2023-01-05 18:21:49 +0100 |
commit | 47071c58aa868ee9756a98c967b64c024d22920b (patch) | |
tree | 3a1f0e7cb5931b7287cde54fe84379b75ca11001 /view/js | |
parent | 79d99688b4febeef6ae552252c254efa6911fd53 (diff) | |
download | volse-hubzilla-47071c58aa868ee9756a98c967b64c024d22920b.tar.gz volse-hubzilla-47071c58aa868ee9756a98c967b64c024d22920b.tar.bz2 volse-hubzilla-47071c58aa868ee9756a98c967b64c024d22920b.zip |
fix affinity slider updates - issue #1714
Diffstat (limited to 'view/js')
-rw-r--r-- | view/js/main.js | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/view/js/main.js b/view/js/main.js index c409eed35..fdebb5faa 100644 --- a/view/js/main.js +++ b/view/js/main.js @@ -646,7 +646,6 @@ function updatePageItems(mode, data) { function updateConvItems(mode,data) { - var scroll_position = $(window).scrollTop(); if(mode !== 'update') @@ -659,10 +658,6 @@ function updateConvItems(mode,data) { next = 'threads-end'; } - if(mode === 'replace') { - $('.thread-parent').remove(); // clear existing content - } - $('.thread-wrapper', data).each(function() { if(this.classList.contains('toplevel_item')) { var ident = this.id; @@ -955,9 +950,13 @@ function liveUpdate(notify_id) { console.log('displaying: ' + update_url); if(page_load) { + $("#page-spinner").show(); - if(bParam_page == 1) + + if(bParam_page == 1) { update_mode = 'replace'; + $('.thread-wrapper').remove(); + } else update_mode = 'append'; } |