mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Merge pull request #26710 from kenta-s/change-page-change-to-turbolinks-load
Change page:change to turbolinks:load in README.md [ci skip]
This commit is contained in:
commit
161b6079b5
2 changed files with 2 additions and 2 deletions
|
@ -167,7 +167,7 @@ App.cable.subscriptions.create "AppearanceChannel",
|
|||
buttonSelector = "[data-behavior~=appear_away]"
|
||||
|
||||
install: ->
|
||||
$(document).on "page:change.appearance", =>
|
||||
$(document).on "turbolinks:load.appearance", =>
|
||||
@appear()
|
||||
|
||||
$(document).on "click.appearance", buttonSelector, =>
|
||||
|
|
|
@ -422,7 +422,7 @@ App.cable.subscriptions.create "AppearanceChannel",
|
|||
buttonSelector = "[data-behavior~=appear_away]"
|
||||
|
||||
install: ->
|
||||
$(document).on "page:change.appearance", =>
|
||||
$(document).on "turbolinks:load.appearance", =>
|
||||
@appear()
|
||||
|
||||
$(document).on "click.appearance", buttonSelector, =>
|
||||
|
|
Loading…
Reference in a new issue