forked from lix-project/hydra
Fix the empty popovers
This commit is contained in:
parent
2902684c61
commit
b5e18ce62c
|
@ -526,9 +526,9 @@ BLOCK makeLazyTab %]
|
||||||
|
|
||||||
|
|
||||||
BLOCK makePopover %]
|
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 %]
|
[% title %]
|
||||||
</div>
|
</button>
|
||||||
[% END;
|
[% END;
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -48,6 +48,14 @@ $(document).ready(function() {
|
||||||
|
|
||||||
bootbox.setDefaults({ animate: false });
|
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({});
|
$(".hydra-popover").popover({});
|
||||||
|
|
||||||
/* Activates tab according to URL anchor. */
|
/* Activates tab according to URL anchor. */
|
||||||
|
|
Loading…
Reference in a new issue