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

(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/checkouts-table.inc (-2 / +2 lines)
Lines 7-13 Link Here
7
            <p>
7
            <p>
8
                <a id="issues-table-load-now-button" href="#" class="btn btn-default"><i class="fa fa-book"></i> Show checkouts</a>
8
                <a id="issues-table-load-now-button" href="#" class="btn btn-default"><i class="fa fa-book"></i> Show checkouts</a>
9
                [% SET LoadCheckoutsTableDelay = Koha.Preference('LoadCheckoutsTableDelay') %]
9
                [% SET LoadCheckoutsTableDelay = Koha.Preference('LoadCheckoutsTableDelay') %]
10
                [% IF LoadCheckoutsTableDelay %]
10
                [% IF LoadCheckoutsTableDelay && page == 'circulation' %]
11
                <span id="issues-table-load-delay">
11
                <span id="issues-table-load-delay">
12
                    <i id="issues-table-load-delay-spinner" class="fa fa-spinner fa-pulse fa-fw"></i>
12
                    <i id="issues-table-load-delay-spinner" class="fa fa-spinner fa-pulse fa-fw"></i>
13
                    <span id="issues-table-load-delay-message">Checkouts table will show automatically in [% LoadCheckoutsTableDelay | html %] seconds...</span>
13
                    <span id="issues-table-load-delay-message">Checkouts table will show automatically in [% LoadCheckoutsTableDelay | html %] seconds...</span>
Lines 46-52 Link Here
46
                [% INCLUDE 'checkouts-table-footer.inc' %]
46
                [% INCLUDE 'checkouts-table-footer.inc' %]
47
            </table>
47
            </table>
48
48
49
            <label for="issues-table-load-immediately">Always show checkouts immediately</label>
49
            <label for="issues-table-load-immediately">Always show checkouts automatically</label>
50
            <input id="issues-table-load-immediately" type="checkbox" />
50
            <input id="issues-table-load-immediately" type="checkbox" />
51
51
52
            <div id="issues-table-actions">
52
            <div id="issues-table-actions">
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/circulation.pref (-1 / +1 lines)
Lines 175-181 Circulation: Link Here
175
            - Delay the automatic loading of the checkouts table on the checkouts page by
175
            - Delay the automatic loading of the checkouts table on the checkouts page by
176
            - pref: LoadCheckoutsTableDelay
176
            - pref: LoadCheckoutsTableDelay
177
              class: integer
177
              class: integer
178
            - seconds when "Always show checkouts immediately" is enabled.
178
            - seconds when "Always show checkouts automatically" is enabled.
179
        -
179
        -
180
            - pref: OnSiteCheckoutAutoCheck
180
            - pref: OnSiteCheckoutAutoCheck
181
              choices:
181
              choices:
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt (-1 / +1 lines)
Lines 890-896 Link Here
890
                    <div class="tab-content">
890
                    <div class="tab-content">
891
                        <!-- SUMMARY : TODAY & PREVIOUS ISSUES -->
891
                        <!-- SUMMARY : TODAY & PREVIOUS ISSUES -->
892
892
893
                        [% INCLUDE "checkouts-table.inc" %]
893
                        [% INCLUDE "checkouts-table.inc" page="circulation" %]
894
894
895
                        [% INCLUDE "relatives-issues-table.inc" %]
895
                        [% INCLUDE "relatives-issues-table.inc" %]
896
896
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt (-1 / +1 lines)
Lines 732-738 Link Here
732
                        </ul>
732
                        </ul>
733
733
734
                        <div class="tab-content">
734
                        <div class="tab-content">
735
                            [% INCLUDE "checkouts-table.inc" %]
735
                            [% INCLUDE "checkouts-table.inc" page="moremember" %]
736
736
737
                            [% INCLUDE "relatives-issues-table.inc" %]
737
                            [% INCLUDE "relatives-issues-table.inc" %]
738
738
(-)a/koha-tmpl/intranet-tmpl/prog/js/checkouts.js (-1 / +2 lines)
Lines 261-266 $(document).ready(function() { Link Here
261
            LoadIssuesTable();
261
            LoadIssuesTable();
262
        }
262
        }
263
        $('#issues-table-load-immediately').prop('checked', true);
263
        $('#issues-table-load-immediately').prop('checked', true);
264
    } else {
265
        $('#issues-table-load-delay').hide();
264
    }
266
    }
265
    $('#issues-table-load-immediately').on( "change", function(){
267
    $('#issues-table-load-immediately').on( "change", function(){
266
        Cookies.set("issues-table-load-immediately-" + script, $(this).is(':checked'), { expires: 365, sameSite: 'Lax'  });
268
        Cookies.set("issues-table-load-immediately-" + script, $(this).is(':checked'), { expires: 365, sameSite: 'Lax'  });
267
- 

Return to bug 33945