From 3284b062a0e56d143ace24f99dc9adfb78a18174 Mon Sep 17 00:00:00 2001 From: Georgy Litvinov Date: Fri, 4 Oct 2024 13:50:08 +0200 Subject: [PATCH] avoid cleaning radiotype values --- webapp/src/main/webapp/js/customFormUtils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webapp/src/main/webapp/js/customFormUtils.js b/webapp/src/main/webapp/js/customFormUtils.js index decddd4dcc..cea033002d 100644 --- a/webapp/src/main/webapp/js/customFormUtils.js +++ b/webapp/src/main/webapp/js/customFormUtils.js @@ -29,7 +29,7 @@ vitro.customFormUtils = { // Clear data from form elements in element el clearFields: function(el) { - el.find(':input[type!="hidden"][type!="submit"][type!="button"]').each(function() { + el.find(':input[type!="hidden"][type!="submit"][type!="button"]:not(.radiotypes)').each(function() { $(this).val(''); // Remove a validation error associated with this element. // For now we can remove the error elements. Later we may include them in