fix: initTooltip과 bootstrap-vue-3 충돌 문제 해결

- 기타 data-bs 안붙은거 마저 수정
This commit is contained in:
2021-12-11 11:37:41 +09:00
parent ef6cb065d5
commit 08488cae4a
15 changed files with 131 additions and 112 deletions
+27 -13
View File
@@ -1,29 +1,43 @@
import $ from 'jquery';
import { activateFlip, initTooltip } from '@/common_legacy';
import jQuery from 'jquery';
import { activateFlip } from "@/legacy/activateFlip";
import { unwrap } from '@util/unwrap';
import { htmlReady } from '@util/htmlReady';
import { initTooltip } from './initTooltip';
import { exportWindow } from '@/util/exportWindow';
import '@/msg.ts';
import '@/map.ts';
import '@scss/main.scss';
import { unwrap } from '@util/unwrap';
import { htmlReady } from '@util/htmlReady';
exportWindow(jQuery, '$');
htmlReady(() => {
$('.refreshPage').click(function () {
document.querySelector('.refreshPage')?.addEventListener('click', function () {
document.location.reload();
return false;
});
$('.open-window').on('click', function (e) {
document.querySelector('.open-window')?.addEventListener('click', function (e) {
e.preventDefault();
let target = $(e.target as HTMLAnchorElement);
while (target.attr('href') === undefined) {
target = target.parent('a');
if (target.length == 0) {
let target: HTMLElement | null = e.target as HTMLElement;
while (target !== null) {
target = target.parentElement;
if (target === null) {
return;
}
if (target.tagName != 'a') {
continue;
}
if ((target as HTMLAnchorElement).href !== undefined) {
break;
}
}
const href = target.attr('href');
window.open(href);
if (!target) {
return;
}
window.open((target as HTMLAnchorElement).href);
});
activateFlip();