[openstreetmap/openstreetmap-website] Added error handling for object display on map (PR #6353)
mmd
notifications at github.com
Tue Aug 26 08:10:50 UTC 2025
@mmd-osm commented on this pull request.
> @@ -54,3 +54,17 @@ OSM.turboHtmlResponseHandler = function (event) {
event.stopPropagation();
}
};
+
+OSM.displayLoadError = function (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))),
Originally, I wanted to move this function "as is" to a new place, but I guess we can address this issue.
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/6353#discussion_r2300176739
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/6353/review/3154481815 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20250826/70756411/attachment.htm>
More information about the rails-dev
mailing list