popover trigger needs to be defined in js init

According to https://github.com/twbs/bootstrap/issues/10547 it's not
possible to have the trigger defined on the delegated element, i.e. not
defined as a data attribute.
This commit is contained in:
Alexis Reigel 2017-06-26 14:41:17 +02:00
parent 5013f3a816
commit 4648d0016f
2 changed files with 2 additions and 2 deletions

View File

@ -251,7 +251,8 @@ $(function () {
});
// Initialize popovers
$body.popover({
selector: '[data-toggle="popover"]'
selector: '[data-toggle="popover"]',
trigger: 'focus'
});
$('.trigger-submit').on('change', function () {
return $(this).parents('form').submit();

View File

@ -283,7 +283,6 @@ module CommitsHelper
toggle: 'popover',
html: 'true',
placement: 'auto bottom',
trigger: 'focus',
title: title,
content: content
}