[open-ils-commits] [GIT] Evergreen ILS branch rel_2_1 updated. 45bb4248fffc6f6fc54447142468333a1def70be

Evergreen Git git at git.evergreen-ils.org
Wed Jun 15 09:28:25 EDT 2011


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Evergreen ILS".

The branch, rel_2_1 has been updated
       via  45bb4248fffc6f6fc54447142468333a1def70be (commit)
      from  48d8f482ebe460afa585e795c2c6a92e3cf0e584 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 45bb4248fffc6f6fc54447142468333a1def70be
Author: Jason Etheridge <jason at esilibrary.com>
Date:   Wed Jun 15 03:13:50 2011 -0400

    lp797321: Disable the Apply Payment button during payment processing to mitigate chance of duplicate payments.
    
    I can't actually reproduce the creation of duplicate payments locally with
    trunk/2.x, but there are reports of it, and this doesn't seem to hurt.  Not
    a complete solution, but better than before
    
    Signed-off-by: Jason Etheridge <jason at esilibrary.com>
    Signed-off-by: Galen Charlton <gmc at esilibrary.com>

diff --git a/Open-ILS/xul/staff_client/server/patron/bill2.js b/Open-ILS/xul/staff_client/server/patron/bill2.js
index 12109b1..50bc004 100644
--- a/Open-ILS/xul/staff_client/server/patron/bill2.js
+++ b/Open-ILS/xul/staff_client/server/patron/bill2.js
@@ -178,7 +178,9 @@ function event_listeners() {
             'command',
             function(ev) {
                 try {
+                    $('apply_payment_btn').disabled = true;
                     apply_payment();
+                    $('apply_payment_btn').disabled = false;
                 } catch(E) {
                     alert('Error in bill2.js, apply_payment_btn: ' + E);
                 }

-----------------------------------------------------------------------

Summary of changes:
 Open-ILS/xul/staff_client/server/patron/bill2.js |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)


hooks/post-receive
-- 
Evergreen ILS


More information about the open-ils-commits mailing list