From 76dc0c73aebc478806d68ad8d74b5403b85d874b Mon Sep 17 00:00:00 2001
From: Jonathan Druart
Date: Tue, 20 Nov 2012 14:34:09 +0100
Subject: [PATCH] Bug 9076: Followup: FIX ergonomic issues
If no criteria is given, the form was submitted.
Labels were wrong
Signed-off-by: Kyle M Hall
Signed-off-by: Jonathan Druart
Signed-off-by: Jared Camins-Esakov
---
.../prog/en/modules/tools/cleanborrowers.tt | 10 ++++------
1 file changed, 4 insertions(+), 6 deletions(-)
diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/cleanborrowers.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/cleanborrowers.tt
index 0b745cea89..5aa1865361 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/cleanborrowers.tt
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/cleanborrowers.tt
@@ -12,14 +12,12 @@
if((form.checkbox[0].checked)){
if ( (!form.date1.value) && (!form.borrower_dateexpiry.value) && (!form.borrower_categorycode.value) ){
alert(_("Please enter at least one criterion for deletion!"));
- document.form.date1.focus();
return false;
}
}
if((form.checkbox[1].checked)){
if(!(form.date2.value)){
alert(_("please enter a date !"));
- document.form.date2.focus();
return false;
}
}
@@ -57,9 +55,9 @@