[FO] 임가 건의사항 이동 처리 수정
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user