LP#1749992 Disable payment button during payment
authorDan Wells <dbw2@calvin.edu>
Tue, 20 Feb 2018 16:05:49 +0000 (11:05 -0500)
committerChris Sharp <csharp@georgialibraries.org>
Thu, 22 Feb 2018 19:51:32 +0000 (14:51 -0500)
commit1f1afaf1526841e2a89dbf12bc071d03ef281e52
tree2a67c9f750f8657127bb8a2363452e3ae247e8b2
parentc698199f4081867a97a7d801499e8d7bfd86652d
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>
Open-ILS/src/templates/staff/circ/patron/t_bills.tt2
Open-ILS/web/js/ui/default/staff/circ/patron/bills.js