From d51e8733adf0b9ebe8ede4eda0f54d81e1d35d8e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B9=80=ED=98=84=EC=A3=BC?= Date: Tue, 24 Jun 2025 10:48:22 +0900 Subject: [PATCH] =?UTF-8?q?[FO]=20=EC=9D=BC=EA=B3=84=EB=B6=80=20=EC=88=AB?= =?UTF-8?q?=EC=9E=90=20=ED=82=A4=EB=B3=B4=EB=93=9C=20oninput=20=EC=B6=94?= =?UTF-8?q?=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/resources/static/ui/commonUtil.js | 6 +++++ .../templates/record/expense/form.html | 9 ++++--- .../templates/record/farming/form.html | 4 ++-- .../templates/record/forestry/form.html | 4 ++-- .../templates/record/income/form.html | 6 ++--- .../templates/record/power/form.html | 6 +++-- .../resources/templates/record/work/form.html | 24 +++++++++---------- 7 files changed, 35 insertions(+), 24 deletions(-) diff --git a/front/src/main/resources/static/ui/commonUtil.js b/front/src/main/resources/static/ui/commonUtil.js index d9963e9f..7e60c2b7 100644 --- a/front/src/main/resources/static/ui/commonUtil.js +++ b/front/src/main/resources/static/ui/commonUtil.js @@ -246,4 +246,10 @@ kri.form.error = function(errorList){ } } +kri.form.maxlength = function(object){ + if (object.value.length > object.maxLength) { + object.value = object.value.slice(0, object.maxLength); + } +} + diff --git a/front/src/main/resources/templates/record/expense/form.html b/front/src/main/resources/templates/record/expense/form.html index 6ffbae2a..a17be087 100644 --- a/front/src/main/resources/templates/record/expense/form.html +++ b/front/src/main/resources/templates/record/expense/form.html @@ -79,7 +79,8 @@
- +