From b2b5aeb08b255815540d406efec933d01c1b6ac7 Mon Sep 17 00:00:00 2001 From: Molkobain Date: Tue, 9 Jul 2024 11:28:37 +0200 Subject: [PATCH] =?UTF-8?q?Revert=20"N=C2=B07559=20-=20Fix=20radio=20butto?= =?UTF-8?q?ns=20in=20template=20fields"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit dc8f676f757a4e36e1fade1844cb9a73a249f454. This reverts commit e9ef48b79c4a7e1c4a73d90b92d30c838e1b8177. --- js/form_field.js | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/js/form_field.js b/js/form_field.js index 908d823ae..2ebcebf72 100644 --- a/js/form_field.js +++ b/js/form_field.js @@ -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) {