[openstreetmap/openstreetmap-website] Introduce "reload" js controller method (PR #3774)
Anton Khorev
notifications at github.com
Fri Oct 28 13:00:13 UTC 2022
Part of https://github.com/openstreetmap/openstreetmap-website/pull/3682/commits/2d1862120c1b7c18ce9493139fb874a6ef08a0e1.
This is a method that gets called
- for controllers that have it defined
- when the "Reload current page" button is pressed in the browser
- if it's possible to detect that this button is pressed
Otherwise the usual "load" method is called.
If any kind of client-side caching is used, js controllers can flush the cache in this method.
You can view, comment on, or merge this pull request online at:
https://github.com/openstreetmap/openstreetmap-website/pull/3774
-- Commit Summary --
* Introduce "reload" js controller method
-- File Changes --
M app/assets/javascripts/router.js (22)
-- Patch Links --
https://github.com/openstreetmap/openstreetmap-website/pull/3774.patch
https://github.com/openstreetmap/openstreetmap-website/pull/3774.diff
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/3774
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/3774 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20221028/74c604cd/attachment.htm>
More information about the rails-dev
mailing list