feat(WIP): bootstrap 5 tooltip 적용
- bootstrap4 용의 popper.js 제거 - jquery기반 bootstrap tooltip 제거
This commit is contained in:
+16
-10
@@ -6,6 +6,8 @@ import { GeneralListResponse, InvalidResponse } from './defs';
|
||||
import { convertFormData } from './util/convertFormData';
|
||||
import { unwrap_any } from './util/unwrap_any';
|
||||
import { setAxiosXMLHttpRequest } from './util/setAxiosXMLHttpRequest';
|
||||
import { Tooltip } from 'bootstrap';
|
||||
import { trim } from 'lodash';
|
||||
|
||||
setAxiosXMLHttpRequest();
|
||||
|
||||
@@ -250,11 +252,13 @@ function printGenerals(value: NPCToken) {
|
||||
|
||||
$('.card_holder').append($card);
|
||||
$card.find('.select_btn').on('click', pickGeneral);
|
||||
$card.find('.obj_tooltip').tooltip({
|
||||
title: function () {
|
||||
return $.trim($(this).find('.tooltiptext').html());
|
||||
},
|
||||
html: true
|
||||
$card.find('.obj_tooltip').each(function(){
|
||||
new Tooltip(this, {
|
||||
title: function () {
|
||||
return trim(this.querySelector('.tooltiptext')?.innerHTML);
|
||||
},
|
||||
html: true
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
@@ -388,11 +392,13 @@ function _printGeneralList(clear?:boolean) {
|
||||
$('#row_print_more').hide();
|
||||
}
|
||||
|
||||
$generalTable.find('.obj_tooltip').tooltip({
|
||||
title: function () {
|
||||
return $.trim($(this).find('.tooltiptext').html());
|
||||
},
|
||||
html: true
|
||||
$generalTable.find('.obj_tooltip').each(function(){
|
||||
new Tooltip(this, {
|
||||
title: function () {
|
||||
return trim(this.querySelector('.tooltiptext')?.innerHTML);
|
||||
},
|
||||
html: true
|
||||
})
|
||||
});
|
||||
$('#tb_general_list').show();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user