Bug 33945: (QA follow-up) Don't show delay message on patron details page

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Kyle Hall 2023-06-08 12:32:33 +00:00 committed by Tomas Cohen Arazi
parent 9e4ee8850a
commit 3d737ef3fc
Signed by: tomascohen
GPG key ID: 0A272EA1B2F3C15F
5 changed files with 7 additions and 5 deletions

View file

@ -7,7 +7,7 @@
<p>
<a id="issues-table-load-now-button" href="#" class="btn btn-default"><i class="fa fa-book"></i> Show checkouts</a>
[% SET LoadCheckoutsTableDelay = Koha.Preference('LoadCheckoutsTableDelay') %]
[% IF LoadCheckoutsTableDelay %]
[% IF LoadCheckoutsTableDelay && page == 'circulation' %]
<span id="issues-table-load-delay">
<i id="issues-table-load-delay-spinner" class="fa fa-spinner fa-pulse fa-fw"></i>
<span id="issues-table-load-delay-message">Checkouts table will show automatically in [% LoadCheckoutsTableDelay | html %] seconds...</span>
@ -46,7 +46,7 @@
[% INCLUDE 'checkouts-table-footer.inc' %]
</table>
<label for="issues-table-load-immediately">Always show checkouts immediately</label>
<label for="issues-table-load-immediately">Always show checkouts automatically</label>
<input id="issues-table-load-immediately" type="checkbox" />
<div id="issues-table-actions">

View file

@ -175,7 +175,7 @@ Circulation:
- Delay the automatic loading of the checkouts table on the checkouts page by
- pref: LoadCheckoutsTableDelay
class: integer
- seconds when "Always show checkouts immediately" is enabled.
- seconds when "Always show checkouts automatically" is enabled.
-
- pref: OnSiteCheckoutAutoCheck
choices:

View file

@ -890,7 +890,7 @@
<div class="tab-content">
<!-- SUMMARY : TODAY & PREVIOUS ISSUES -->
[% INCLUDE "checkouts-table.inc" %]
[% INCLUDE "checkouts-table.inc" page="circulation" %]
[% INCLUDE "relatives-issues-table.inc" %]

View file

@ -732,7 +732,7 @@
</ul>
<div class="tab-content">
[% INCLUDE "checkouts-table.inc" %]
[% INCLUDE "checkouts-table.inc" page="moremember" %]
[% INCLUDE "relatives-issues-table.inc" %]

View file

@ -261,6 +261,8 @@ $(document).ready(function() {
LoadIssuesTable();
}
$('#issues-table-load-immediately').prop('checked', true);
} else {
$('#issues-table-load-delay').hide();
}
$('#issues-table-load-immediately').on( "change", function(){
Cookies.set("issues-table-load-immediately-" + script, $(this).is(':checked'), { expires: 365, sameSite: 'Lax' });