aboutsummaryrefslogtreecommitdiffstats
path: root/view/js/main.js
diff options
context:
space:
mode:
Diffstat (limited to 'view/js/main.js')
-rw-r--r--view/js/main.js11
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';
}