hash로 수정
This commit is contained in:
@@ -347,4 +347,13 @@ kri.form.setSelectBoxUiCode = function({
|
||||
getParentValue: () => parentSelectUI.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;
|
||||
modal01.open();
|
||||
// URL 해시 추가
|
||||
window.location.hash = 'modal-open';
|
||||
|
||||
modalControl._bindModelUI();
|
||||
|
||||
},
|
||||
function(code, rstData) {
|
||||
kri.logger.error('Do nothing. code: '+ code, rstData);
|
||||
|
||||
Reference in New Issue
Block a user