fix: 메인페이지 갱신 버튼이 일부만 동작하는 버그
This commit is contained in:
@@ -11,12 +11,15 @@ exportWindow(jQuery, '$');
|
|||||||
|
|
||||||
|
|
||||||
htmlReady(() => {
|
htmlReady(() => {
|
||||||
document.querySelector('.refreshPage')?.addEventListener('click', function () {
|
for(const refreshBtn of document.querySelectorAll('.refreshPage')){
|
||||||
|
refreshBtn.addEventListener('click', function () {
|
||||||
document.location.reload();
|
document.location.reload();
|
||||||
return false;
|
return false;
|
||||||
});
|
})
|
||||||
|
}
|
||||||
|
|
||||||
document.querySelector('.open-window')?.addEventListener('click', function (e) {
|
for(const openWindowBtn of document.querySelectorAll('.open-window')){
|
||||||
|
openWindowBtn.addEventListener('click', function (e) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
let target: HTMLElement | null = e.target as HTMLElement;
|
let target: HTMLElement | null = e.target as HTMLElement;
|
||||||
while (target !== null) {
|
while (target !== null) {
|
||||||
@@ -38,6 +41,7 @@ htmlReady(() => {
|
|||||||
|
|
||||||
window.open((target as HTMLAnchorElement).href);
|
window.open((target as HTMLAnchorElement).href);
|
||||||
});
|
});
|
||||||
|
}
|
||||||
|
|
||||||
activateFlip();
|
activateFlip();
|
||||||
initTooltip();
|
initTooltip();
|
||||||
|
|||||||
Reference in New Issue
Block a user