[Koha-bugs] [Bug 34668] Add syspref to popup warn librarians of waiting holds for the patrons whose items they are checking out

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Oct 12 20:26:29 CEST 2023


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=34668

--- Comment #10 from Shi Yao Wang <shi-yao.wang at inLibro.com> ---
(In reply to Nick Clemens from comment #9)
> Rather than unbinding/rebinding events, could we have an action bound to
> submit on the form, and then display the modal or not as needed? That would
> be more in line with current code I believe

>$('#circ-warnwaitingholds-modal .btn-primary').on('click',function() {
>    $('#mainform').submit();
>});

This is the action bound to (confirm) submit the usual checkout form from the
modal.


The modal display logic depends on what is written in the barcode input, it
needs to display the modal if the barcode about to be checked out is not among
waiting holds, else it will submit the form as usual.

I currently do not see how this can be done without binding/unbinding events of
the "Check out" button depending on the barcode input. Can I get more details
on how to do what you suggest?

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list