]> git.openstreetmap.org Git - rails.git/commitdiff
Clear comment field after a new note is created
authorTom Hughes <tom@compton.nu>
Mon, 13 May 2013 23:14:02 +0000 (00:14 +0100)
committerTom Hughes <tom@compton.nu>
Mon, 13 May 2013 23:14:02 +0000 (00:14 +0100)
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;