[Koha-patches] [PATCH] bug5027: skip unticked checkboxes when submitting in the background.

Robin Sheat robin at catalyst.net.nz
Fri Oct 8 03:56:17 CEST 2010


From: Srdjan Jankovic <srdjan at catalyst.net.nz>


Signed-off-by: Robin Sheat <robin at catalyst.net.nz>
---
 .../prog/en/includes/background-job.inc            |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/background-job.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/background-job.inc
index 9d257f4..46922e1 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/includes/background-job.inc
+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/background-job.inc
@@ -47,7 +47,7 @@
             // gather up form submission
             var inputs = [];
             $(':input', f).each(function() {
-                if (this.type == 'radio') {
+                if (this.type == 'radio' || this.type == 'checkbox') {
                     if (this.checked) {
                         inputs.push(this.name + '=' + escape(this.value));
                     }
-- 
1.7.1



More information about the Koha-patches mailing list