hpi-swt2/workshop-portal

View on GitHub
app/assets/javascripts/bootstrap.js

Summary

Maintainability
A
0 mins
Test Coverage
function enableBootstrapComponents() {
  $("a[rel~=popover], .has-popover").popover();
  $("a[rel~=tooltip], .has-tooltip").tooltip();
}

// make sure we activate on first load (in particular tests don't work well
// with just turbolinks:load) and also on any subsequent page change via
// turbolinks
$(document).on('turbolinks:load', enableBootstrapComponents);
jQuery(enableBootstrapComponents);