From 35a746843afc2e2a9f4d53bf4f3e562767a38bc9 Mon Sep 17 00:00:00 2001 From: leebj Date: Thu, 12 Sep 2024 14:21:57 +0900 Subject: [PATCH] =?UTF-8?q?is=3D"curly-brackets"=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/webapp/resources/js/fims/cmmn/customElements.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/main/webapp/resources/js/fims/cmmn/customElements.js b/src/main/webapp/resources/js/fims/cmmn/customElements.js index c4cec040..6e276fee 100644 --- a/src/main/webapp/resources/js/fims/cmmn/customElements.js +++ b/src/main/webapp/resources/js/fims/cmmn/customElements.js @@ -270,7 +270,9 @@ class CurlyBrackets extends HTMLTemplateElement { let tdCheckboxes = thisCon.querySelectorAll("td>input[type='checkbox']"); tdCheckboxes.forEach(function(node) { - if(node.getAttribute("value") != null && node.getAttribute("value") != "" && node.getAttribute("value") != "on"){ + if(node.getAttribute("value") != null && node.getAttribute("value") != "" + && node.getAttribute("value") != "on" + && node.getAttribute("value").indexOf(curlyBracketsOpen) == -1){ node.setAttribute("value","{"+node.getAttribute("value")+"}"); } if(node.getAttribute("onchange") != null && node.getAttribute("onchange") == ""){ @@ -280,7 +282,9 @@ class CurlyBrackets extends HTMLTemplateElement { let tdRadios = thisCon.querySelectorAll("td>input[type='radio']"); tdRadios.forEach(function(node) { - if(node.getAttribute("value") != null && node.getAttribute("value") != "" && node.getAttribute("value") != "on"){ + if(node.getAttribute("value") != null && node.getAttribute("value") != "" + && node.getAttribute("value") != "on" + && node.getAttribute("value").indexOf(curlyBracketsOpen) == -1){ node.setAttribute("value","{"+node.getAttribute("value")+"}"); } if(node.getAttribute("onchange") != null && node.getAttribute("onchange") == ""){