forked from rDrama/rDrama
fsdfsd
parent
259cb7a542
commit
7360fa7475
|
@ -837,6 +837,20 @@
|
||||||
xhr.onload=function(){
|
xhr.onload=function(){
|
||||||
if (xhr.status==200) {
|
if (xhr.status==200) {
|
||||||
document.getElementById("viewmore").innerHTML = xhr.response.replace(/data-src/g, 'src').replace(/data-cfsrc/g, 'src').replace(/style="display:none;visibility:hidden;"/g, '');
|
document.getElementById("viewmore").innerHTML = xhr.response.replace(/data-src/g, 'src').replace(/data-cfsrc/g, 'src').replace(/style="display:none;visibility:hidden;"/g, '');
|
||||||
|
var tooltipTriggerList = [].slice.call(document.querySelectorAll('[data-bs-toggle="tooltip"]'));
|
||||||
|
tooltipTriggerList.map(function(element){
|
||||||
|
return new bootstrap.Tooltip(element);
|
||||||
|
});
|
||||||
|
|
||||||
|
const popoverTriggerList = [].slice.call(document.querySelectorAll('[data-bs-toggle="popover"]'));
|
||||||
|
const popoverList = popoverTriggerList.map(function(popoverTriggerEl) {
|
||||||
|
const popoverId = popoverTriggerEl.getAttribute('data-content-id');
|
||||||
|
const contentEl = document.getElementById(popoverId).innerHTML;
|
||||||
|
return new bootstrap.Popover(popoverTriggerEl, {
|
||||||
|
content: contentEl,
|
||||||
|
html: true,
|
||||||
|
});
|
||||||
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
xhr.send(form)
|
xhr.send(form)
|
||||||
|
|
Loading…
Reference in New Issue