]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/index/notes.js.erb
Clear comment field after a new note is created
[rails.git] / app / assets / javascripts / index / notes.js.erb
index 7e197b09e22b52fa1e747a9efe7c8446bc371ebb..a58e5c56816070fcef53a15cbe95f1f47a0d4fc4 100644 (file)
@@ -202,6 +202,8 @@ $(document).ready(function () {
         text: $(form.text).val()
       },
       success: function (feature) {
+        $(marker._popup._content).find("textarea").val("");
+
         notes[feature.properties.id] = updateMarker(marker, feature);
         newNote = null;