mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-13 07:24:13 +01:00
Revert "N°7559 - Fix radio buttons in template fields"
This reverts commitdc8f676f75. This reverts commite9ef48b79c.
This commit is contained in:
@@ -95,20 +95,7 @@ $(function()
|
||||
value = $(oElem).val();
|
||||
}
|
||||
}
|
||||
else if( $(oElem).is(':radio'))
|
||||
{
|
||||
let nameRadioButton= $(oElem).prop('name');
|
||||
let radioCheckProp = $('[name='+nameRadioButton+']:checked');
|
||||
if(radioCheckProp.length === 1)
|
||||
{
|
||||
value = radioCheckProp.val();
|
||||
}
|
||||
else
|
||||
{
|
||||
value = "";
|
||||
}
|
||||
}
|
||||
else if($(oElem).is(':checkbox'))
|
||||
else if($(oElem).is(':checkbox') || $(oElem).is(':radio'))
|
||||
{
|
||||
if(value === null)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user