(retrofit) Properly read radio button values inside a form.

SVN:2.2.0[3851]
This commit is contained in:
Denis Flaven
2015-12-14 13:14:21 +00:00
parent beaaa163bb
commit 4808ef74f3

View File

@@ -634,10 +634,18 @@ function ReadFormParams(sFormId)
{
oMap[sName] = ($(this).attr('checked') == 'checked');
}
else if (this.type == 'radio')
{
if ($(this).prop('checked'))
{
oMap[sName] = $(this).val();
}
}
else
{
oMap[sName] = $(this).val();
}
}
}
});