mirror of
https://github.com/Combodo/iTop.git
synced 2026-05-19 07:12:26 +02:00
(retrofit) Properly read radio button values inside a form.
SVN:2.2.0[3851]
This commit is contained in:
@@ -634,10 +634,18 @@ function ReadFormParams(sFormId)
|
|||||||
{
|
{
|
||||||
oMap[sName] = ($(this).attr('checked') == 'checked');
|
oMap[sName] = ($(this).attr('checked') == 'checked');
|
||||||
}
|
}
|
||||||
|
else if (this.type == 'radio')
|
||||||
|
{
|
||||||
|
if ($(this).prop('checked'))
|
||||||
|
{
|
||||||
|
oMap[sName] = $(this).val();
|
||||||
|
}
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
oMap[sName] = $(this).val();
|
oMap[sName] = $(this).val();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user