Bugzilla – Attachment 160674 Details for
Bug 34668
Notify staff with a pop-up about waiting holds for a patron when checking out
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 34668: remove binding/unbinding event for one submit event
Bug-34668-remove-bindingunbinding-event-for-one-su.patch (text/plain), 3.48 KB, created by
Lucas Gass (lukeg)
on 2024-01-08 23:44:56 UTC
(
hide
)
Description:
Bug 34668: remove binding/unbinding event for one submit event
Filename:
MIME Type:
Creator:
Lucas Gass (lukeg)
Created:
2024-01-08 23:44:56 UTC
Size:
3.48 KB
patch
obsolete
>From ecf740568a842676fd066c32c227c065d0395657 Mon Sep 17 00:00:00 2001 >From: Shi Yao Wang <shi-yao.wang@inlibro.com> >Date: Thu, 12 Oct 2023 15:51:55 -0400 >Subject: [PATCH] Bug 34668: remove binding/unbinding event for one submit > event > >Signed-off-by: Mia Kujala <mia.kujala@xamk.fi> >Signed-off-by: Kelly <kelly@bywatersolutions.com> >Signed-off-by: Lucas Gass <lucas@bywatersolutions.com> >--- > .../prog/en/modules/circ/circulation.tt | 37 ++++++------------- > 1 file changed, 11 insertions(+), 26 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt >index 64abdb934a..faf596c294 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt >@@ -751,11 +751,7 @@ > <a href="#" title="Checkout settings"><i class="fa-solid fa-sliders"></i></a> > </div> > >- [% IF waiting_holds_barcodes %] >- <button type="button" class="btn btn-primary">Check out</button> >- [% ELSE %] >- <button type="submit" class="btn btn-primary">Check out</button> >- [% END %] >+ <button type="submit" class="btn btn-primary">Check out</button> > > <div class="circ-settings"> > >@@ -1052,31 +1048,20 @@ > [% FOREACH b IN waiting_holds_barcodes %] > waiting_holds_barcodes.push("[% b | html %]"); > [% END %] >- $('#barcode').on('keyup', function() { >- $('#mainform .btn-primary').off('click'); >- $('#barcode').off('keypress'); >+ $("#mainform").on('submit', function(){ >+ if( $("#checkout_confirmed").length > 0 ){ >+ return true; >+ } > if ( waiting_holds_barcodes.includes($('#barcode').val().trim()) ) { >- $('#mainform .btn-primary').on('click',function() { >- $('#mainform').submit(); >- }); >- >- $('#barcode').on('keypress', function(e) { >- if (e.which == 13) { >- $('#mainform').submit(); >- } >- }); >+ return true; > } else { >- $('#mainform .btn-primary').on('click',function() { >- $('#circ-warnwaitingholds-modal').modal(); >- }); >- >- $('#barcode').on('keypress', function(e) { >- if (e.which == 13) { >- $('#circ-warnwaitingholds-modal').modal(); >- } >- }); >+ $('#circ-warnwaitingholds-modal').modal(); >+ return false; > } > }); >+ $("#circ-warnwaitingholds-modal").on('hidden.bs.modal',function(){ >+ $("#mainform").append('<input type="hidden" id="checkout_confirmed" value=1>').submit(); >+ }); > [% END %] > > $('#mainform').on('submit',function() { >-- >2.30.2
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 34668
:
155044
|
155045
|
155143
|
155188
|
156992
|
157243
|
157312
|
157315
|
157316
|
158359
|
158528
|
158529
|
158530
|
160673
| 160674 |
160675
|
160676