From 4b1384be832b0a745eeb8ac94cba6b00edc4eb64 Mon Sep 17 00:00:00 2001 From: Mario Date: Fri, 21 Jul 2023 08:17:45 +0000 Subject: more performance improvements --- view/js/main.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'view/js') diff --git a/view/js/main.js b/view/js/main.js index 13fc29cd4..c463b1f59 100644 --- a/view/js/main.js +++ b/view/js/main.js @@ -807,7 +807,7 @@ function updateConvItems(mode,data) { } // reset rotators and cursors we may have set before reaching this place - $('.like-rotator').hide(); + $("#page-spinner").hide(); $("#profile-jot-text-loading").hide(); @@ -842,8 +842,7 @@ function scrollToItem() { } function collapseHeight() { - - $(".wall-item-content, .directory-collapse").each(function() { + $(".wall-item-content:not('.divmore_checked'), .directory-collapse:not('.divmore_checked')").each(function(i) { var orgHeight = $(this).outerHeight(true); var id = $(this).attr('id') var open = ((expanded_items.indexOf($(this).attr('id')) === -1) ? false : true); @@ -871,6 +870,7 @@ function collapseHeight() { $(this).addClass('divmore'); } } + $(this).addClass('divmore_checked'); }); } -- cgit v1.2.3