From dff0971f1c6f55d18c2c20f46bac5cb8aed1966f Mon Sep 17 00:00:00 2001 From: Liz Rea Date: Thu, 27 Dec 2012 16:10:26 +1300 Subject: [PATCH] Bug 8054 - double clicking can cause duplicate payments/fines Uses preventDoubleForSubmit() to prevent double form submissions in the fines module. To test: Create a manual invoice/fine Create some manual fines, click save like mad - you should get only one fine (without, you will get several if you click madly enough) Click Pay fines Pay some fines, clicking save like mad on each. You should only get one payment. (without, you will get several payments) Create a manual credit Create a credit, click save like mad. You should only get one credit. (without you will get several if you click madly enough) Signed-off-by: Kyle M Hall Signed-off-by: Marcel de Rooy Signed-off-by: Jared Camins-Esakov Signed-off-by: Chris Cormack --- .../prog/en/modules/members/mancredit.tt | 3 ++- .../prog/en/modules/members/maninvoice.tt | 3 ++- .../intranet-tmpl/prog/en/modules/members/pay.tt | 3 ++- .../prog/en/modules/members/paycollect.tt | 13 ++++++++++--- 4 files changed, 16 insertions(+), 6 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/mancredit.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/mancredit.tt index 8b71856e2f..52264ee582 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/mancredit.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/mancredit.tt @@ -5,6 +5,7 @@ // @@ -32,7 +33,7 @@ $(document).ready(function(){
-
+
diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/maninvoice.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/maninvoice.tt index 217882e3a1..dc9aac497c 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/maninvoice.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/maninvoice.tt @@ -5,6 +5,7 @@ // @@ -37,7 +38,7 @@ $(document).ready(function(){ ERROR an invalid itemnumber was entered, please hit back and try again [% END %] [% ELSE %] - +
Manual Invoice
    diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/pay.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/pay.tt index 2780c3f3da..ad89b3cd74 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/pay.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/pay.tt @@ -4,6 +4,7 @@ +