]> git.evergreen-ils.org Git - Evergreen.git/commit
LP#1749992 Disable payment button during payment
authorDan Wells <dbw2@calvin.edu>
Tue, 20 Feb 2018 16:05:49 +0000 (11:05 -0500)
committerJason Stephenson <jason@sigio.com>
Tue, 20 Feb 2018 18:09:19 +0000 (13:09 -0500)
commit9f63d10a10773ab3d3602234fe9df668ac1122f0
treea726aa82f6cedd7485d6e0e2e98eb4f221df4543
parentcf61fa0b3ed22a0c67abc0dfe0cc6a30826980e1
LP#1749992 Disable payment button during payment

Since the display is not refreshed until the payment finishes, it
is possible to fire off a second payment by double-clicking.

This commit is a simple way to disable the button while a payment is
in process, then enable it again after the display refreshes.

Since the 'sendPayment()' function is wrapped, we may need to move
this logic up, but this being a single promise is simpler, and it
solved the problem in testing.

Signed-off-by: Dan Wells <dbw2@calvin.edu>
Signed-off-by: Jason Stephenson <jason@sigio.com>
Open-ILS/src/templates/staff/circ/patron/t_bills.tt2
Open-ILS/web/js/ui/default/staff/circ/patron/bills.js