application.js 641 B

1234567891011121314151617181920
  1. // This file is automatically compiled by Webpack, along with any other files
  2. // present in this directory. You're encouraged to place your actual application logic in
  3. // a relevant structure within app/javascript and only use these pack files to reference
  4. // that code so it'll be compiled.
  5. require("@rails/ujs").start()
  6. require("turbolinks").start()
  7. require("@rails/activestorage").start()
  8. require("channels")
  9. require("local-time").start()
  10. window.Rails = Rails
  11. import 'bootstrap'
  12. import 'data-confirm-modal'
  13. $(document).on("turbolinks:load", () => {
  14. $('[data-toggle="tooltip"]').tooltip()
  15. $('[data-toggle="popover"]').popover()
  16. })