Commit f10a156669e5241a4390b432e82aea5ca76a71fe
1 parent
9c4ed864
Exists in
master
and in
4 other branches
FIX: Browser back button breaks "Loading..." visual
From: https://github.com/rails/turbolinks/ page:change the page has been parsed and changed to the new version and on DOMContentLoaded
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
app/assets/javascripts/main.js.coffee
... | ... | @@ -56,7 +56,7 @@ window.unbindEvents = -> |
56 | 56 | |
57 | 57 | document.addEventListener("page:fetch", startSpinner) |
58 | 58 | document.addEventListener("page:fetch", unbindEvents) |
59 | -document.addEventListener("page:receive", stopSpinner) | |
59 | +document.addEventListener("page:change", stopSpinner) | |
60 | 60 | |
61 | 61 | $ -> |
62 | 62 | # Click a .one_click_select field, select the contents | ... | ... |