]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/index/note.js
Merge remote-tracking branch 'upstream/pull/5419'
[rails.git] / app / assets / javascripts / index / note.js
index 4e8f64d09c4684ae1827fabf1b6bef95b628ad6a..e9c51f9bf1df571f6814be4999a10517975fd28b 100644 (file)
@@ -60,8 +60,8 @@ OSM.Note = function (map) {
         }
       };
 
-      if (name !== "subscribe" && name !== "unsubscribe") {
-        ajaxSettings.data = { text: $("textarea").val() };
+      if (name !== "subscribe" && name !== "unsubscribe" && name !== "reopen") {
+        ajaxSettings.data = { text: content.find("textarea").val() };
       }
 
       content.find("button[name]").prop("disabled", true);