|
|
@@ -423,20 +423,14 @@
|
|
|
$(".todayButton").addClass("lightGrey");
|
|
|
}
|
|
|
$(document).ready(function() {
|
|
|
- // Initialize all popovers
|
|
|
- var popoverTriggerList = [].slice.call(document.querySelectorAll('[data-bs-toggle="popover"]'));
|
|
|
- var popoverList = popoverTriggerList.map(function (popoverTriggerEl) {
|
|
|
- return new bootstrap.Popover(popoverTriggerEl);
|
|
|
- });
|
|
|
-
|
|
|
- // Your click handler
|
|
|
- $(document).on("click", "[data-bs-trigger='hover focus']", function() {
|
|
|
- $(".bs-popover-auto").css('display', 'none');
|
|
|
- var popover = bootstrap.Popover.getInstance(this);
|
|
|
- if (popover) {
|
|
|
- popover.hide();
|
|
|
- }
|
|
|
- });
|
|
|
+ if (typeof $().popover === 'function') {
|
|
|
+ $(document).on("click", "[data-bs-trigger='hover focus']", function() {
|
|
|
+ $(".bs-popover-auto").css('display', 'none');
|
|
|
+ $(this).popover('hide');
|
|
|
+ });
|
|
|
+ } else {
|
|
|
+ console.error("Bootstrap popover functionality is not available. Make sure Bootstrap JS is properly loaded.");
|
|
|
+ }
|
|
|
});
|
|
|
function newexportaction(e, dt, button, config) {
|
|
|
var self = this;
|