projects
/
rails.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
61dd2af
)
Clear comment field after a new note is created
author
Tom Hughes
<tom@compton.nu>
Mon, 13 May 2013 23:14:02 +0000
(
00:14
+0100)
committer
Tom Hughes
<tom@compton.nu>
Mon, 13 May 2013 23:14:02 +0000
(
00:14
+0100)
app/assets/javascripts/index/notes.js.erb
patch
|
blob
|
history
diff --git
a/app/assets/javascripts/index/notes.js.erb
b/app/assets/javascripts/index/notes.js.erb
index 7e197b09e22b52fa1e747a9efe7c8446bc371ebb..a58e5c56816070fcef53a15cbe95f1f47a0d4fc4 100644
(file)
--- a/
app/assets/javascripts/index/notes.js.erb
+++ b/
app/assets/javascripts/index/notes.js.erb
@@
-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;