https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=34668
--- Comment #10 from Shi Yao Wang <shi-yao.w...@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. _______________________________________________ Koha-bugs mailing list Koha-bugs@lists.koha-community.org https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/