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

(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc (-9 / +1 lines)
Lines 285-295 Link Here
285
        let Sticky;
285
        let Sticky;
286
        let singleBranchMode = '[% singleBranchMode | html %]';
286
        let singleBranchMode = '[% singleBranchMode | html %]';
287
        let logged_in_library_id = "[% Branches.GetLoggedInBranchcode | html %]";
287
        let logged_in_library_id = "[% Branches.GetLoggedInBranchcode | html %]";
288
        [% IF do_not_defer_loading %]
289
            let defer_loading = 0;
290
        [% ELSE %]
291
            let defer_loading = 1;
292
        [% END %]
293
288
294
        [% IF adjust_history %]
289
        [% IF adjust_history %]
295
            /* popstate event triggered by forward and back button. Need to refresh search */
290
            /* popstate event triggered by forward and back button. Need to refresh search */
Lines 431-437 Link Here
431
                    [% END %]
426
                    [% END %]
432
                },
427
                },
433
                [% END %]
428
                [% END %]
434
                "deferLoading": defer_loading,
435
                "columns": [
429
                "columns": [
436
                    [% FOR column IN columns %]
430
                    [% FOR column IN columns %]
437
                        [% IF default_sort_column == column %]
431
                        [% IF default_sort_column == column %]
Lines 721-729 Link Here
721
                patron_search_form.find(".searchpattern").parent().hide();
715
                patron_search_form.find(".searchpattern").parent().hide();
722
            });
716
            });
723
717
724
            if ( !defer_loading ) {
718
            patron_search_form.submit();
725
                patron_search_form.submit();
726
            }
727
719
728
            [% IF adjust_history %]
720
            [% IF adjust_history %]
729
                /* Initial page load does not trigger the popstate event, so we explicitly call this */
721
                /* Initial page load does not trigger the popstate event, so we explicitly call this */
(-)a/members/member.pl (-4 lines)
Lines 69-76 my $searchtype = $input->param('searchtype'); Link Here
69
69
70
$template->param( 'alphabet' => C4::Context->preference('alphabet') || join ' ', 'A' .. 'Z' );
70
$template->param( 'alphabet' => C4::Context->preference('alphabet') || join ' ', 'A' .. 'Z' );
71
71
72
my $defer_loading = $input->request_method() eq "GET"  && !$circsearch ? 1 : 0;
73
74
$template->param(
72
$template->param(
75
    patron_lists => [ GetPatronLists() ],
73
    patron_lists => [ GetPatronLists() ],
76
    searchmember        => $searchmember,
74
    searchmember        => $searchmember,
Lines 79-85 $template->param( Link Here
79
    searchtype          => $searchtype,
77
    searchtype          => $searchtype,
80
    searchfieldstype    => $searchfieldstype,
78
    searchfieldstype    => $searchfieldstype,
81
    PatronsPerPage      => C4::Context->preference("PatronsPerPage") || 20,
79
    PatronsPerPage      => C4::Context->preference("PatronsPerPage") || 20,
82
    do_not_defer_loading => !$defer_loading,
83
    circsearch          => $circsearch,
80
    circsearch          => $circsearch,
84
);
81
);
85
82
86
- 

Return to bug 36302