Commit 657b8d41 authored by Pierre Dittgen's avatar Pierre Dittgen

stickier popovers

parent d9a20943
...@@ -154,13 +154,27 @@ ...@@ -154,13 +154,27 @@
{% block page_scripts %} {% block page_scripts %}
<script> <script>
$(function() { // Popovers that stays while on popover bubble
// Errors tooltip activate // https://stackoverflow.com/questions/15989591/how-can-i-keep-bootstrap-popover-alive-while-the-popover-is-being-hovered
$('[data-toggle="popover"]').popover({ $('[data-toggle="popover"]').popover({
html: true, trigger: 'manual',
placement: "auto", html: true,
trigger: "hover" animation: false,
placement: 'auto'
})
.on('mouseenter', function () {
var _this = this;
$(this).popover('show');
$('.popover').on('mouseleave', function () {
$(_this).popover('hide');
}); });
}).on('mouseleave', function () {
var _this = this;
setTimeout(function () {
if (!$('.popover:hover').length) {
$(_this).popover('hide');
}
}, 100);
}); });
</script> </script>
{% endblock %} {% endblock %}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment