You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have an amount of html building being created using JavaScript code. For example, in leaflet.share.js there is a substantial amount of html construction:
This makes it harder to find, and much harder to maintain, than having the html in a view like the rest of the site. It's also mostly unnecessary, since html like this isn't dynamic, it's the same for every user.
We should move all of this html into views, and use the javascript only for interactivity like changing content (e.g. taking results of an ajax query and putting them into the html) or to show/hide certain elements after UI interactions.
The text was updated successfully, but these errors were encountered:
We have an amount of html building being created using JavaScript code. For example, in
leaflet.share.js
there is a substantial amount of html construction:openstreetmap-website/app/assets/javascripts/leaflet.share.js
Lines 37 to 53 in 7cf9bf0
This makes it harder to find, and much harder to maintain, than having the html in a view like the rest of the site. It's also mostly unnecessary, since html like this isn't dynamic, it's the same for every user.
We should move all of this html into views, and use the javascript only for interactivity like changing content (e.g. taking results of an ajax query and putting them into the html) or to show/hide certain elements after UI interactions.
The text was updated successfully, but these errors were encountered: