Fix the empty popovers

This commit is contained in:
Tyson Whitehead 2021-04-08 11:12:22 -04:00
parent 2902684c61
commit b5e18ce62c
No known key found for this signature in database
GPG key ID: B22199763A27997B
2 changed files with 10 additions and 2 deletions

View file

@ -526,9 +526,9 @@ BLOCK makeLazyTab %]
BLOCK makePopover %]
<div class="btn hydra-popover [% classes %]" data-toggle="popover" data-html="true" [% HTML.attributes('data-content' => content, 'data-placement' => placement || 'bottom') %]>
<button type="button" class="btn hydra-popover [% classes %]" data-toggle="popover" data-html="true" [% HTML.attributes('data-content' => content, 'data-placement' => placement || 'bottom') %]>
[% title %]
</div>
</button>
[% END;

View file

@ -48,6 +48,14 @@ $(document).ready(function() {
bootbox.setDefaults({ animate: false });
/* Enable popovers (and allow table and teletype elements in them). */
$.fn.popover.Constructor.Default.whiteList.table = [];
$.fn.popover.Constructor.Default.whiteList.thead = []
$.fn.popover.Constructor.Default.whiteList.tbody = [];
$.fn.popover.Constructor.Default.whiteList.tr = [];
$.fn.popover.Constructor.Default.whiteList.th = [];
$.fn.popover.Constructor.Default.whiteList.td = [];
$.fn.popover.Constructor.Default.whiteList.tt = [];
$(".hydra-popover").popover({});
/* Activates tab according to URL anchor. */