From 31344fa8317c68e4138cad844b22ec4ca3ed41b6 Mon Sep 17 00:00:00 2001 From: monishdeb Date: Wed, 8 Apr 2015 12:52:41 +0530 Subject: [PATCH] CRM-15403 fix - Large Batch Data Entry allows multiple submits causing duplicate transactions https://issues.civicrm.org/jira/browse/CRM-15403 --- templates/CRM/Batch/Form/Entry.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/templates/CRM/Batch/Form/Entry.js b/templates/CRM/Batch/Form/Entry.js index f75467c97e..3aa8cb730e 100755 --- a/templates/CRM/Batch/Form/Entry.js +++ b/templates/CRM/Batch/Form/Entry.js @@ -6,7 +6,9 @@ CRM.$(function($) { 'url': CRM.url('civicrm/ajax/batch') }; - $("#Entry").ajaxSubmit(options); + $("#Entry").ajaxSubmit(options).on('click', function() { + $(this).block(); + }); // validate rows checkColumns($(this)); -- 2.25.1