[openstreetmap/openstreetmap-website] Move element / element history sidebar code to its own file (PR #6128)
Anton Khorev
notifications at github.com
Tue Jun 24 00:36:03 UTC 2025
Part 1 of #6120.
Creates `element.js` and moves `OSM.Browse` and `OSM.OldBrowse` there.
Everything in `element.js` is wrapped in iife which is currently not required, but #6120 later adds functions there; this is to avoid reindenting the code later.
You can view, comment on, or merge this pull request online at:
https://github.com/openstreetmap/openstreetmap-website/pull/6128
-- Commit Summary --
* Move Browse and OldBrowse to their own file
* Rename Browse javascript controllers to Element
* Implement MappedElement as extension of Element
-- File Changes --
M app/assets/javascripts/index.js (55)
A app/assets/javascripts/index/element.js (46)
-- Patch Links --
https://github.com/openstreetmap/openstreetmap-website/pull/6128.patch
https://github.com/openstreetmap/openstreetmap-website/pull/6128.diff
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/6128
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/6128 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20250623/087992dd/attachment-0001.htm>
More information about the rails-dev
mailing list