diff --git a/app/assets/javascripts/maps.js b/app/assets/javascripts/maps.js index 291f25edc..ae81e336a 100644 --- a/app/assets/javascripts/maps.js +++ b/app/assets/javascripts/maps.js @@ -58,6 +58,7 @@ jQuery(document).ready(function($) { $("#new_comment textarea").val('')     $("#comments").append(xhr.responseText) + $("#comments-number").text(function(i, str) { return (parseInt(str) + 1); }); $('.comment:last').click(edit_comment).click(delete_comment)   }).on("ajax:error", function(e, xhr, status, error) { if (xhr.responseText == "Login required.") {