]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/index/note.js
Get note text only from textarea within left sidebar
[rails.git] / app / assets / javascripts / index / note.js
index 8687321c92d3bce115d02c6b8973ffd01ebd9124..e9c51f9bf1df571f6814be4999a10517975fd28b 100644 (file)
@@ -61,7 +61,7 @@ OSM.Note = function (map) {
       };
 
       if (name !== "subscribe" && name !== "unsubscribe" && name !== "reopen") {
-        ajaxSettings.data = { text: $("textarea").val() };
+        ajaxSettings.data = { text: content.find("textarea").val() };
       }
 
       content.find("button[name]").prop("disabled", true);