Commit 4648d001 authored by Alexis Reigel's avatar Alexis Reigel

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.
parent 5013f3a8
......@@ -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
}
......
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