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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batch_modify_holds.tt (-5 / +6 lines)
Lines 249-255 Link Here
249
        let hide_patron_name = [% IF Koha.Preference('HidePatronName') %]true[% ELSE %]false[% END %];
249
        let hide_patron_name = [% IF Koha.Preference('HidePatronName') %]true[% ELSE %]false[% END %];
250
        let hold_ids = [% IF updated_holds %] [% updated_holds | $raw %] [% ELSE %] [] [% END %];
250
        let hold_ids = [% IF updated_holds %] [% updated_holds | $raw %] [% ELSE %] [] [% END %];
251
        let hold_ids_from_sql = [% IF reserve_ids_list  %] [% reserve_ids_list  | $raw %] [% ELSE %] [] [% END %];
251
        let hold_ids_from_sql = [% IF reserve_ids_list  %] [% reserve_ids_list  | $raw %] [% ELSE %] [] [% END %];
252
        var holds_to_modify_table_settings = [% TablesSettings.GetTableSettings( 'tools', 'batch_hold_modification', 'holds_to_modify', 'json' ) | $raw %];
253
        var modified_holds_table_settings = [% TablesSettings.GetTableSettings( 'circ', 'holds', 'modified_holds', 'json' ) | $raw %];
254
    </script>
252
255
256
    <script>
253
        $(document).ready(function() {
257
        $(document).ready(function() {
254
258
255
            // Apply select2 to all select fields having a "multiple" attribute
259
            // Apply select2 to all select fields having a "multiple" attribute
Lines 343-349 Link Here
343
            }
347
            }
344
348
345
            function search_holds(modify_holds_form){
349
            function search_holds(modify_holds_form){
346
                var table_settings = [% TablesSettings.GetTableSettings( 'tools', 'batch_hold_modification', 'holds_to_modify', 'json' ) | $raw %];
347
                var searchpattern = "";
350
                var searchpattern = "";
348
                var filters = {
351
                var filters = {
349
                    "me.expirationdate": function(){
352
                    "me.expirationdate": function(){
Lines 570-576 Link Here
570
                            }
573
                            }
571
                        }
574
                        }
572
                    ],
575
                    ],
573
                }, table_settings, 0, filters);
576
                }, holds_to_modify_table_settings, 0, filters);
574
577
575
                $(".searchpattern").text(searchpattern);
578
                $(".searchpattern").text(searchpattern);
576
579
Lines 643-653 Link Here
643
            });
646
            });
644
647
645
            //Modified holds table
648
            //Modified holds table
646
            var table_settings = [% TablesSettings.GetTableSettings( 'circ', 'holds', 'modified_holds', 'json' ) | $raw %];
647
            $("#modified_holds").kohaTable({
649
            $("#modified_holds").kohaTable({
648
                pagingType: "full",
650
                pagingType: "full",
649
                autoWidth: false
651
                autoWidth: false
650
            }, table_settings);
652
            }, modified_holds_table_settings);
651
653
652
        });
654
        });
653
    </script>
655
    </script>
654
- 

Return to bug 41580