]> git.openstreetmap.org Git - rails.git/commitdiff
Don't send comment text when reopening a note live
authorTom Hughes <tom@compton.nu>
Fri, 29 Nov 2024 17:41:00 +0000 (17:41 +0000)
committerTom Hughes <tom@compton.nu>
Fri, 29 Nov 2024 17:41:00 +0000 (17:41 +0000)
Fixes #5359.

app/assets/javascripts/index/note.js

index 4e8f64d09c4684ae1827fabf1b6bef95b628ad6a..8687321c92d3bce115d02c6b8973ffd01ebd9124 100644 (file)
@@ -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() };
       }