X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/257f4673e1dd86a3704f6a965e5e077283a04a00..5ce51e974886e4671d97cc4fd7b231874ae4023e:/app/assets/javascripts/index/note.js diff --git a/app/assets/javascripts/index/note.js b/app/assets/javascripts/index/note.js index 4e8f64d09..e9c51f9bf 100644 --- a/app/assets/javascripts/index/note.js +++ b/app/assets/javascripts/index/note.js @@ -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);