diff --git a/src/main/webapp/WEB-INF/jsp/web/msgsent/MsgSentView.jsp b/src/main/webapp/WEB-INF/jsp/web/msgsent/MsgSentView.jsp index c1f7c602..54eb6533 100644 --- a/src/main/webapp/WEB-INF/jsp/web/msgsent/MsgSentView.jsp +++ b/src/main/webapp/WEB-INF/jsp/web/msgsent/MsgSentView.jsp @@ -261,6 +261,15 @@ function fnSearch(pageNo){ } + +//이전 월 구하기 +function prevMonth(month) { + var d = new Date(); + var monthOfYear = d.getMonth(); + d.setMonth(monthOfYear - month); + return getDateStr(d); +} + function fnExcelDownLoad(pageType, tabType){ var form = document.searchForm; @@ -282,7 +291,7 @@ function fnExcelDownLoad(pageType, tabType){ else { if ($("#startDate").val() < prevMonth(3)) { alert("최근 3개월까지만 다운로드 가능합니다.") -// return false; + return false; } }