diff --git a/src/main/webapp/publish/js/dateUtils.js b/src/main/webapp/publish/js/dateUtils.js index abe6ffcb..ea2648f3 100644 --- a/src/main/webapp/publish/js/dateUtils.js +++ b/src/main/webapp/publish/js/dateUtils.js @@ -113,14 +113,14 @@ function getDateStr(myDate){ } /** - * 검색 날짜관련 ID로 검색 시작일 최대 기한을 제한 function + * 검색 날짜관련 ID로 검색 시작일 최대 기간을 제한 function * @param {String} a 검색 시작 ID - * @param {String} b 최대 기한 달 수 - * @returns {Boolean} a날짜와 현재 날짜를 비교해서 b월 이상이면 false 이하면 true + * @param {String} b 최대 기간 달 수 + * @returns {Boolean} a날짜와 현재 날짜를 비교해서 차이가 b월 이상이면 false 이하면 true */ function fn_G_limitDateChk(startId, limitMonth) { - // 시작일자 가져오기 - var startDate = document.getElementById(startId).value; + // 시작일자 가져오기 + var startDate = document.getElementById(startId).value; // 날짜 형식으로 변환 및 현재 날짜 설정 var start = new Date(startDate); @@ -130,7 +130,7 @@ function fn_G_limitDateChk(startId, limitMonth) { maxDate.setMonth(maxDate.getMonth() - limitMonth); if(start < maxDate){ - alert("검색 시작일자를 최근 3개월 이내로 입력해주세요."); + alert("검색 시작일자를 최근 "+limitMonth+"개월 이내로 입력해주세요."); return false; } return true;