diff --git a/js/bootstrap.js b/js/bootstrap.js index 0f47027..4c0ef88 100644 --- a/js/bootstrap.js +++ b/js/bootstrap.js @@ -62,16 +62,20 @@ var Drupal = Drupal || {}; }); // Init popovers on pageload when settings is set. if (settings.bootstrap.popover) { - $(context).one('click.drupal.popover.data-api', '[data-toggle="popover"]', function (e) { - e.preventDefault(); - $(this).popover('show'); + $(context).on('click.drupal.popover.data-api', '[data-toggle="popover"]', function (e) { + if ($(this).data('bs.popover') === undefined) { + e.preventDefault(); + $(this).popover('show'); + } }); } // Init tooltips on pageload when settings is set. if (settings.bootstrap.tooltip) { - $(context).one('mouseenter.drupal.tooltip.data-api focus.drupal.tooltip.data-api', '[data-toggle="tooltip"]', function (e) { - e.preventDefault(); - $(this).tooltip('show'); + $(context).on('mouseenter.drupal.tooltip.data-api focus.drupal.tooltip.data-api', '[data-toggle="tooltip"]', function (e) { + if ($(this).data('bs.tooltip') === undefined) { + e.preventDefault(); + $(this).tooltip('show'); + } }); } }