hash로 수정
This commit is contained in:
@@ -348,3 +348,12 @@ kri.form.setSelectBoxUiCode = function({
|
|||||||
getChildValue: () => childSelectUI?.getValue() ?? ''
|
getChildValue: () => childSelectUI?.getValue() ?? ''
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$(window).off('hashchange.modalClose').on('hashchange.modalClose', function() {
|
||||||
|
if (window.location.hash !== '#modal-open') {
|
||||||
|
const modal01 = document.querySelector(ENV.modal.selector)?.ui;
|
||||||
|
if (modal01) {
|
||||||
|
modal01.close();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
@@ -127,8 +127,11 @@ krip.daily.createModal = function(id) {
|
|||||||
|
|
||||||
const modal01 = document.querySelector(ENV.modal.selector).ui;
|
const modal01 = document.querySelector(ENV.modal.selector).ui;
|
||||||
modal01.open();
|
modal01.open();
|
||||||
|
// URL 해시 추가
|
||||||
|
window.location.hash = 'modal-open';
|
||||||
|
|
||||||
modalControl._bindModelUI();
|
modalControl._bindModelUI();
|
||||||
|
|
||||||
},
|
},
|
||||||
function(code, rstData) {
|
function(code, rstData) {
|
||||||
kri.logger.error('Do nothing. code: '+ code, rstData);
|
kri.logger.error('Do nothing. code: '+ code, rstData);
|
||||||
|
|||||||
@@ -112,6 +112,10 @@
|
|||||||
module: {
|
module: {
|
||||||
modalPopup: null
|
modalPopup: null
|
||||||
},
|
},
|
||||||
|
modal: {
|
||||||
|
// 등록 영역
|
||||||
|
selector: '.addPopup',
|
||||||
|
},
|
||||||
data: {
|
data: {
|
||||||
transferCategoryCodeList: /*[[${transferCategoryList}]]*/ [],
|
transferCategoryCodeList: /*[[${transferCategoryList}]]*/ [],
|
||||||
codeRecordCropList: /*[[${codeRecordCropList}]]*/ [],
|
codeRecordCropList: /*[[${codeRecordCropList}]]*/ [],
|
||||||
@@ -339,6 +343,7 @@
|
|||||||
});
|
});
|
||||||
|
|
||||||
ENV.module.modalPopup.open();
|
ENV.module.modalPopup.open();
|
||||||
|
window.location.hash = 'modal-open';
|
||||||
|
|
||||||
document.querySelector('.modal-content').scrollTop = 0;
|
document.querySelector('.modal-content').scrollTop = 0;
|
||||||
|
|
||||||
|
|||||||
@@ -112,6 +112,10 @@
|
|||||||
module: {
|
module: {
|
||||||
modalPopup: null
|
modalPopup: null
|
||||||
},
|
},
|
||||||
|
modal: {
|
||||||
|
// 등록 영역
|
||||||
|
selector: '.addPopup',
|
||||||
|
},
|
||||||
data: {
|
data: {
|
||||||
transferCategoryCodeList: /*[[${transferCategoryList}]]*/ [],
|
transferCategoryCodeList: /*[[${transferCategoryList}]]*/ [],
|
||||||
codeRecordCropList: /*[[${codeRecordCropList}]]*/ [],
|
codeRecordCropList: /*[[${codeRecordCropList}]]*/ [],
|
||||||
@@ -330,6 +334,7 @@
|
|||||||
});
|
});
|
||||||
|
|
||||||
ENV.module.modalPopup.open();
|
ENV.module.modalPopup.open();
|
||||||
|
window.location.hash = 'modal-open';
|
||||||
document.querySelector('.modal-content').scrollTop = 0;
|
document.querySelector('.modal-content').scrollTop = 0;
|
||||||
|
|
||||||
// 모두 로드된 후 콜백 실행
|
// 모두 로드된 후 콜백 실행
|
||||||
|
|||||||
@@ -108,7 +108,10 @@
|
|||||||
module: {
|
module: {
|
||||||
modalPopup: null
|
modalPopup: null
|
||||||
},
|
},
|
||||||
|
modal: {
|
||||||
|
// 등록 영역
|
||||||
|
selector: '.addPopup',
|
||||||
|
},
|
||||||
data: {
|
data: {
|
||||||
purposeList: /*[[${purposeList}]]*/ [],
|
purposeList: /*[[${purposeList}]]*/ [],
|
||||||
unitList: /*[[${unitList}]]*/ [],
|
unitList: /*[[${unitList}]]*/ [],
|
||||||
@@ -341,6 +344,7 @@
|
|||||||
|
|
||||||
|
|
||||||
ENV.module.modalPopup.open();
|
ENV.module.modalPopup.open();
|
||||||
|
window.location.hash = 'modal-open';
|
||||||
|
|
||||||
document.querySelector('.modal-content').scrollTop = 0;
|
document.querySelector('.modal-content').scrollTop = 0;
|
||||||
|
|
||||||
|
|||||||
@@ -152,6 +152,7 @@
|
|||||||
|
|
||||||
const modal01 = document.querySelector(ENV.modal.selector).ui;
|
const modal01 = document.querySelector(ENV.modal.selector).ui;
|
||||||
modal01.open();
|
modal01.open();
|
||||||
|
window.location.hash = 'modal-open';
|
||||||
},
|
},
|
||||||
function(code, rstData) {
|
function(code, rstData) {
|
||||||
kri.logger.error('Do nothing. code: '+ code, rstData);
|
kri.logger.error('Do nothing. code: '+ code, rstData);
|
||||||
|
|||||||
Reference in New Issue
Block a user