@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/[email protected]>_______________________________________________
rails-dev mailing list
[email protected]
https://lists.openstreetmap.org/listinfo/rails-dev