aboutsummaryrefslogtreecommitdiffstats
path: root/view
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2024-01-05 19:30:37 +0000
committerMario <mario@mariovavti.com>2024-01-05 19:30:37 +0000
commite95b7ca3a0a4900690cd79d39c70eba7308c348d (patch)
tree2c7539d3c1f0c6a248f1ea2a6aaed8a3570c6d4e /view
parentc771d7c31a6a8817753079f0010b8e1cbda8c11a (diff)
downloadvolse-hubzilla-e95b7ca3a0a4900690cd79d39c70eba7308c348d.tar.gz
volse-hubzilla-e95b7ca3a0a4900690cd79d39c70eba7308c348d.tar.bz2
volse-hubzilla-e95b7ca3a0a4900690cd79d39c70eba7308c348d.zip
require ext-sodium, dump composer autoload and a minor js fix
Diffstat (limited to 'view')
-rw-r--r--view/js/main.js5
1 files changed, 2 insertions, 3 deletions
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);