From: Tom Hughes Date: Fri, 29 Nov 2024 17:41:00 +0000 (+0000) Subject: Don't send comment text when reopening a note X-Git-Tag: live~8 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/8a020b3ec727b8c9fa4d819855469dd348e58ee7?ds=sidebyside Don't send comment text when reopening a note Fixes #5359. --- diff --git a/app/assets/javascripts/index/note.js b/app/assets/javascripts/index/note.js index 4e8f64d09..8687321c9 100644 --- a/app/assets/javascripts/index/note.js +++ b/app/assets/javascripts/index/note.js @@ -60,7 +60,7 @@ OSM.Note = function (map) { } }; - if (name !== "subscribe" && name !== "unsubscribe") { + if (name !== "subscribe" && name !== "unsubscribe" && name !== "reopen") { ajaxSettings.data = { text: $("textarea").val() }; }