Skip to content

Commit 35d92a0

Browse files
committed
Merge branch 'master' of https://github.com/IMIO/imio.helpers into plone61
2 parents b3b5e45 + 813d405 commit 35d92a0

File tree

4 files changed

+23
-2
lines changed

4 files changed

+23
-2
lines changed

CHANGES.rst

+9
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
11
Changelog
22
=========
33

4+
1.2.4 (unreleased)
5+
------------------
6+
7+
- Added JS function `expandCollapsible` that will expand a list of collapsibles
8+
(`toggleDetails`) passed as query parameter.
9+
[gbastien]
10+
- Pinned `z3c.unconfigure` to `2.1` instead `3.0` as it breaks Plone6.0 tests.
11+
[gbastien]
12+
413
1.2.3 (2025-03-11)
514
------------------
615

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
setup(
1212
name='imio.helpers',
13-
version='1.2.3',
13+
version='1.2.4.dev0',
1414
description="Various helper methods for development.",
1515
long_description=long_description,
1616
# Get more from http://pypi.python.org/pypi?%3Aaction=list_classifiers

src/imio/helpers/browser/static/helpers.js

+12
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,18 @@ function toggleDetails(id, toggle_parent_active=true, parent_tag=null, load_view
8484
}
8585
}
8686

87+
// function that will expand a collapsible if asked thru request parameter
88+
function expandCollapsible() {
89+
let searchParams = new URLSearchParams(window.location.search);
90+
expand_collapsibles = searchParams.getAll('expand-collapsible');
91+
for (let i = 0; i < expand_collapsibles.length; i++) {
92+
label_tag = $('div#' + expand_collapsibles[i])[0].click();
93+
}
94+
}
95+
$(document).ready(function () {
96+
expandCollapsible();
97+
});
98+
8799
function loadContent(tag, load_view, async=true, base_url=null, event_name=null) {
88100
// load content in the collapsible-inner-content div
89101
var url = base_url || canonical_url();

test-6.0.cfg

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ environment = testenv
1111

1212
[versions]
1313
natsort = 6.2.1
14-
14+
z3c.unconfigure = 2.1

0 commit comments

Comments
 (0)