mirror of
https://github.com/itflow-org/itflow
synced 2026-09-09 16:25:11 +00:00
Theme Fixes for adminlte 4
This commit is contained in:
27
js/app.js
27
js/app.js
@@ -427,7 +427,9 @@ $(document).ready(function() {
|
||||
|
||||
// Enable Popovers
|
||||
$(function() {
|
||||
$('[data-bs-toggle="popover"]').popover();
|
||||
document.querySelectorAll('[data-bs-toggle="popover"]').forEach(function (el) {
|
||||
bootstrap.Popover.getOrCreateInstance(el);
|
||||
});
|
||||
});
|
||||
|
||||
// Data Tables
|
||||
@@ -538,16 +540,19 @@ $(document).off('change.itflowEventTime').on('change.itflowEventTime', '.event-s
|
||||
* until the next page load.
|
||||
*/
|
||||
function flashTooltip(button, message) {
|
||||
$(button)
|
||||
.tooltip('dispose')
|
||||
.tooltip({
|
||||
trigger: 'manual',
|
||||
placement: 'bottom',
|
||||
title: message
|
||||
})
|
||||
.tooltip('show');
|
||||
const el = button instanceof Element ? button : $(button)[0];
|
||||
if (!el) {
|
||||
return;
|
||||
}
|
||||
bootstrap.Tooltip.getInstance(el)?.dispose();
|
||||
const tip = new bootstrap.Tooltip(el, {
|
||||
trigger: 'manual',
|
||||
placement: 'bottom',
|
||||
title: message
|
||||
});
|
||||
tip.show();
|
||||
|
||||
setTimeout(function() {
|
||||
$(button).tooltip('dispose');
|
||||
setTimeout(function () {
|
||||
tip.dispose();
|
||||
}, 1000);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user