Skip to content

Commit 82930f5

Browse files
orthaghtrasher
authored andcommitted
limit selection of all checkbox for displaypreference to a sub div
1 parent 7e60ec2 commit 82930f5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

templates/components/search/displaypreference_list.html.twig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
{% import 'components/form/basic_inputs_macros.html.twig' as inputs %}
3434

3535
{% if preferences|length > 0 %}
36-
<div class="m-3">
36+
<div class="m-3" id="displayprefences-setup">
3737
{% if massiveactionparams['specific_actions']|length > 0 %}
3838
<form id="massDisplayPreference{{ rand }}" method="get" action="{{ path('front/massiveaction.php') }}"
3939
data-search-itemtype="DisplayPreference" data-submit-once>
@@ -127,7 +127,7 @@
127127
128128
// (un)toggle all capacities button
129129
$('#select-all-itemtypes').on('click', function() {
130-
var $checkboxes = $('input[type=checkbox]');
130+
var $checkboxes = $('#displayprefences-setup input[type=checkbox]');
131131
var $checkedCheckboxes = $checkboxes.filter(':checked');
132132
133133
if ($checkedCheckboxes.length === $checkboxes.length) {

0 commit comments

Comments
 (0)