이지우 - 검색 기간 제한 함수 수정
@b89f6af826af5617e66dd5cbad7b117932b4d371
--- src/main/webapp/publish/js/dateUtils.js
+++ src/main/webapp/publish/js/dateUtils.js
... | ... | @@ -113,14 +113,14 @@ |
| 113 | 113 |
} |
| 114 | 114 |
|
| 115 | 115 |
/** |
| 116 |
- * 검색 날짜관련 ID로 검색 시작일 최대 기한을 제한 function |
|
| 116 |
+ * 검색 날짜관련 ID로 검색 시작일 최대 기간을 제한 function |
|
| 117 | 117 |
* @param {String} a 검색 시작 ID
|
| 118 |
- * @param {String} b 최대 기한 달 수
|
|
| 119 |
- * @returns {Boolean} a날짜와 현재 날짜를 비교해서 b월 이상이면 false 이하면 true
|
|
| 118 |
+ * @param {String} b 최대 기간 달 수
|
|
| 119 |
+ * @returns {Boolean} a날짜와 현재 날짜를 비교해서 차이가 b월 이상이면 false 이하면 true
|
|
| 120 | 120 |
*/ |
| 121 | 121 |
function fn_G_limitDateChk(startId, limitMonth) {
|
| 122 |
- // 시작일자 가져오기 |
|
| 123 |
- var startDate = document.getElementById(startId).value; |
|
| 122 |
+ // 시작일자 가져오기 |
|
| 123 |
+ var startDate = document.getElementById(startId).value; |
|
| 124 | 124 |
|
| 125 | 125 |
// 날짜 형식으로 변환 및 현재 날짜 설정 |
| 126 | 126 |
var start = new Date(startDate); |
... | ... | @@ -130,7 +130,7 @@ |
| 130 | 130 |
maxDate.setMonth(maxDate.getMonth() - limitMonth); |
| 131 | 131 |
|
| 132 | 132 |
if(start < maxDate){
|
| 133 |
- alert("검색 시작일자를 최근 3개월 이내로 입력해주세요.");
|
|
| 133 |
+ alert("검색 시작일자를 최근 "+limitMonth+"개월 이내로 입력해주세요.");
|
|
| 134 | 134 |
return false; |
| 135 | 135 |
} |
| 136 | 136 |
return true; |
Add a comment
Delete comment
Once you delete this comment, you won't be able to recover it. Are you sure you want to delete this comment?