From 0fabd4b920c9d82201ac6d9c45dc909201d1013c Mon Sep 17 00:00:00 2001 From: kangsunlee Date: Wed, 25 Jun 2025 15:06:37 +0900 Subject: [PATCH] =?UTF-8?q?[BO]=20=EC=9E=84=EC=82=B0=EB=AC=BC=ED=98=84?= =?UTF-8?q?=ED=99=A9=20=EC=9E=91=EC=97=85=20=EC=A4=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- admin/src/main/resources/static/ui/uiUtil.js | 4 + .../modal/modal-forest-product.html | 211 ++++++++++-------- .../resources/templates/households/{seq}.html | 16 ++ 3 files changed, 139 insertions(+), 92 deletions(-) diff --git a/admin/src/main/resources/static/ui/uiUtil.js b/admin/src/main/resources/static/ui/uiUtil.js index 4275841c..583803ee 100644 --- a/admin/src/main/resources/static/ui/uiUtil.js +++ b/admin/src/main/resources/static/ui/uiUtil.js @@ -465,4 +465,8 @@ const formatNumberWithComma = (value) => { return Number(value).toLocaleString(); } +const limitMaxLength = (el) => { + const maxLength = parseInt(el.getAttribute('maxlength'), 10); + el.value = el.value.replace(/\D/g, '').slice(0, maxLength); +} diff --git a/admin/src/main/resources/templates/households/modal/modal-forest-product.html b/admin/src/main/resources/templates/households/modal/modal-forest-product.html index 8f89a30e..70447288 100644 --- a/admin/src/main/resources/templates/households/modal/modal-forest-product.html +++ b/admin/src/main/resources/templates/households/modal/modal-forest-product.html @@ -7,7 +7,7 @@
- +