disable turbo. unwanted side effects.

This commit is contained in:
Christoph Haas 2025-05-13 01:18:43 +02:00
parent 882f7c4567
commit 522cd56807
5 changed files with 26 additions and 17 deletions

View file

@ -1,5 +1,5 @@
// Configure your import map in config/importmap.rb. Read more: https://github.com/rails/importmap-rails
import "@hotwired/turbo-rails"
// import "@hotwired/turbo-rails"
// import "controllers"
// import Lightbox from "photoswipe";
@ -154,8 +154,8 @@ function display_error(msg) { console.log("foo");
// };
// document.addEventListener("DOMContentLoaded", () => {
document.addEventListener("turbo:load", () => {
document.addEventListener("DOMContentLoaded", () => {
// document.addEventListener("turbo:load", () => {
console.log("DOM loaded");
// Handle uploads on specific views/pages. The DIV with ID
// #data-js-upload-form carries data attributes that tell us where