mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-13 07:24:13 +01:00
Properly read radio button values inside a form.
SVN:trunk[3849]
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user