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 @@