mirror of
https://github.com/DarkflameUniverse/NexusDashboard.git
synced 2025-12-30 07:52:29 +00:00
fix: don't show count of 1 on items
fix: tooltips on lazy loaded items
This commit is contained in:
@@ -96,7 +96,7 @@
|
||||
})
|
||||
function setInnerHTML(elm, html) {
|
||||
elm.innerHTML = html;
|
||||
|
||||
$("body").tooltip({ selector: '[data-toggle=tooltip]' });
|
||||
Array.from(elm.querySelectorAll("script"))
|
||||
.forEach( oldScriptEl => {
|
||||
const newScriptEl = document.createElement("script");
|
||||
@@ -109,6 +109,7 @@
|
||||
newScriptEl.appendChild(scriptText);
|
||||
|
||||
oldScriptEl.parentNode.replaceChild(newScriptEl, oldScriptEl);
|
||||
|
||||
});
|
||||
}
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user