bug5027: skip unticked checkboxes when submitting in the background.
authorSrdjan Jankovic <srdjan@catalyst.net.nz>
Tue, 12 Oct 2010 17:03:26 +0000 (13:03 -0400)
committerGalen Charlton <gmcharlt@gmail.com>
Tue, 26 Oct 2010 15:20:32 +0000 (11:20 -0400)
Signed-off-by: Robin Sheat <robin@catalyst.net.nz>
Signed-off-by: Ian Walls <ian.walls@bywatersolutions.com>
Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
koha-tmpl/intranet-tmpl/prog/en/includes/background-job.inc

index 9d257f4..46922e1 100644 (file)
@@ -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));
                     }