View | Details | Raw Unified | Return to bug 41564
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/branch_transfer_limits.tt (-7 / +10 lines)
Lines 1-6 Link Here
1
[% USE raw %]
1
[% USE raw %]
2
[% USE Koha %]
2
[% USE Koha %]
3
[% USE Asset %]
3
[% USE Asset %]
4
[% USE To %]
4
[% USE Branches %]
5
[% USE Branches %]
5
[% PROCESS 'i18n.inc' %]
6
[% PROCESS 'i18n.inc' %]
6
[% SET footerjs = 1 %]
7
[% SET footerjs = 1 %]
Lines 134-141 Link Here
134
[% MACRO jsinclude BLOCK %]
135
[% MACRO jsinclude BLOCK %]
135
    [% Asset.js("js/admin-menu.js") | $raw %]
136
    [% Asset.js("js/admin-menu.js") | $raw %]
136
    [% INCLUDE 'datatables.inc' %]
137
    [% INCLUDE 'datatables.inc' %]
137
    <script>
138
        <script>
138
        $(document).ready(function(){
139
            const codes_loop = [% To.json(codes_loop) | $raw %];
140
        </script>
141
142
        <script>
143
            $(document).ready(function(){
139
            $("#CheckAll").on("click", function(e){
144
            $("#CheckAll").on("click", function(e){
140
                e.preventDefault();
145
                e.preventDefault();
141
                $(".cb").each(function(){
146
                $(".cb").each(function(){
Lines 177-188 Link Here
177
                })
182
                })
178
            });
183
            });
179
184
180
185
            codes_loop.forEach((code) => {
181
            [% FOREACH codes_loo IN codes_loop %]
186
                $(`#${code.code}table`).kohaTable({
182
                $("#[% codes_loo.code | html %]table").kohaTable({
183
                    paging: false,
187
                    paging: false,
184
                });
188
                });
185
            [% END %]
189
            });
186
        });
190
        });
187
    </script>
191
    </script>
188
[% END %]
192
[% END %]
189
- 

Return to bug 41564