From 2f3eda9e733d81c9b2a72a1e338334f033846d8b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=A3=BC=EC=88=98=ED=98=84?= Date: Mon, 28 Jul 2025 11:47:31 +0900 Subject: [PATCH] =?UTF-8?q?0=EB=B3=B4=EB=8B=A4=20=ED=81=B0=EA=B1=B0=20?= =?UTF-8?q?=EC=88=98=EC=A0=95=20=ED=95=B4=EB=91=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- front/src/main/resources/templates/record/work/index.html | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/front/src/main/resources/templates/record/work/index.html b/front/src/main/resources/templates/record/work/index.html index 540597ca..dc97541d 100644 --- a/front/src/main/resources/templates/record/work/index.html +++ b/front/src/main/resources/templates/record/work/index.html @@ -261,10 +261,14 @@ }, function () { // 노동투입시간 invalid reset - if($('.type-sub').find('.input-info').length > 0 && $('.type-sub').find('.input-info').first().text() == "필수입력 항목입니다."){ + if($('.type-sub').find('.input-info').length > 0 && $('.type-sub').find('.input-info').first().text() === "필수입력 항목입니다."){ $('.segment-label .guide-info li').eq(2).text("최소 1개의 노동투입시간을 입력해 주세요."); - }else if(){ + $('.segment-label .guide-info li').eq(2).addClass('invalid'); + }else if($('.type-sub').find('.input-info').length > 0 ){ $('.segment-label .guide-info li').eq(2).text("입력값은 0보다 커야 합니다."); + $('.segment-label .guide-info li').eq(2).addClass('invalid'); + }else{ + $('.segment-label .guide-info li').eq(2).removeClass('invalid'); } $('.type-sub').find('.input-info').remove(); $('.input-flex-group').find('.input-info').remove();