bug5027: skip unticked checkboxes when submitting in the background.

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>
(cherry picked from commit 3a4f36b002)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
This commit is contained in:
Srdjan Jankovic 2010-10-12 13:03:26 -04:00 committed by Chris Nighswonger
parent fc78b73764
commit ab774516fb
1 changed files with 1 additions and 1 deletions

View 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));
}