Fix incorrect turbolinks event usage
Closes #385 (closed)
Turbolinks events, especially turbolinks:load
, were incorrectly used across the application. turbolinks:load
should generally only be used in .js
files, not directly in views. Instead, the code in them can be called directly outside a function or inside a self-invoking anonymous function, which is necessarily placed after the affected elements.