[FO] 임가 건의사항 이동 처리 수정

This commit is contained in:
김현주
2025-06-18 13:25:43 +09:00
parent cd4e775e43
commit 54eb9f5ed3
5 changed files with 29 additions and 49 deletions

View File

@@ -28,40 +28,22 @@ krip.daily.goToPrev = function() {
* @param groupNo
*/
krip.daily.goToNext = function(target, searchMonth, groupNo) {
if (target === 'LAST') {
// 임가 건의사항 팝업
const commentModal = document.querySelector('.commentModal').ui;
commentModal.open({
beforeClose: function () {
krip.daily.createComment(searchMonth, groupNo);
},
});
return;
}
let url = krip.daily.httpUrl.target;
url = url.replace('{month}', searchMonth);
url = url.replace('{groupNo}', groupNo);
url = url.replace('{target}', target.toLowerCase());
if (target === 'LAST') {
alert('LAST');
const commentModal = document.querySelector('.commentModal').ui;
commentModal.open();
/*
commentModal.open({
afterClose() {
console.log(1111)
}
});
*/
//modal02.afterClose
/*
const $modal1 = document.querySelector('.modal02');
const modalInstance1 = new etUI.components.Modal();
modalInstance1.core.init($modal1, {
afterClose(){
console.log('ssssssssssssss')
}
});
*/
return;
}
location.href = url;
};

View File

@@ -114,7 +114,7 @@
</div>
<section layout:fragment="script">
<script th:src="@{/static/ui/page/daily-record.js}"></script>
<script th:src="@{/ui/page/daily-record.js}"></script>
<script th:inline="javascript">
let ENV = {
httpUrl: {