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:
parent
5013f3a816
commit
4648d0016f
|
@ -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();
|
||||
|
|
|
@ -283,7 +283,6 @@ module CommitsHelper
|
|||
toggle: 'popover',
|
||||
html: 'true',
|
||||
placement: 'auto bottom',
|
||||
trigger: 'focus',
|
||||
title: title,
|
||||
content: content
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue