[openstreetmap/openstreetmap-website] Added error handling for object display on map (PR #6353)
mmd
notifications at github.com
Tue Aug 26 15:50:18 UTC 2025
@mmd-osm commented on this pull request.
> + function displayLoadError(message, close) {
+ $("#browse_status").html(
+ $("<div class='p-3'>").append(
+ $("<div class='d-flex'>").append(
+ $("<h2 class='flex-grow-1 text-break'>")
+ .text(OSM.i18n.t("browse.start_rjs.load_data")),
+ $("<div>").append(
+ $("<button type='button' class='btn-close'>")
+ .attr("aria-label", OSM.i18n.t("javascripts.close"))
+ .click(close))),
+ $("<p class='alert alert-warning'>")
+ .text(OSM.i18n.t("browse.start_rjs.feature_error", { message: message }))));
}
fixed by squashing commits
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/6353#discussion_r2301434610
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/6353/review/3156294844 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20250826/c63d51cd/attachment.htm>
More information about the rails-dev
mailing list