From e95b7ca3a0a4900690cd79d39c70eba7308c348d Mon Sep 17 00:00:00 2001 From: Mario Date: Fri, 5 Jan 2024 19:30:37 +0000 Subject: require ext-sodium, dump composer autoload and a minor js fix --- view/js/main.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'view/js') diff --git a/view/js/main.js b/view/js/main.js index 5c5e030c6..f7b341557 100644 --- a/view/js/main.js +++ b/view/js/main.js @@ -848,12 +848,11 @@ function scrollToItem() { function collapseHeight() { $(".wall-item-content:not('.divmore_checked'), .directory-collapse:not('.divmore_checked')").each(function(i) { let orgHeight = $(this).outerHeight(true); - let id = $(this).attr('id'); + let id = $(this).attr('id').split('wall-item-content-').pop(); if (bParam_mid) { // Display the selected mid in an open state - let num_id = id.split('wall-item-content-').pop(); - let b64mids = $('#thread-wrapper-' + num_id).data('b64mids'); + let b64mids = $('#thread-wrapper-' + id).data('b64mids'); if (b64mids.indexOf(bParam_mid) !== -1) {; expanded_items.push(id); -- cgit v1.2.3