[openstreetmap/openstreetmap-website] Added error handling for object display on map (PR #6353)

Marwin Hochfelsner notifications at github.com
Tue Aug 26 08:02:33 UTC 2025


@hlfan 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))),

that should be written with on("click", close)

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/6353#pullrequestreview-3154455556
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/openstreetmap-website/pull/6353/review/3154455556 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20250826/f0380c63/attachment.htm>


More information about the rails-dev mailing list