[openstreetmap/openstreetmap-website] Display error message if note creation fails (PR #7132)
Tom Hughes
notifications at github.com
Mon Jun 8 15:16:58 UTC 2026
@tomhughes commented on this pull request.
> @@ -141,20 +151,33 @@ OSM.NewNote = function (map) {
const location = newNoteMarker.getLatLng().wrap();
const text = content.find("textarea").val();
+ errorPanel = document.querySelector(".new-note-error");
+ errorPanel.classList.add("d-none");
Deciding to remove jQuery should be a concious decision that the project makes though, not something that people try to sneak in the back door.
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/7132#discussion_r3374280626
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/7132/review/4450776083 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20260608/4dce0473/attachment.htm>
More information about the rails-dev
mailing list