diff --git a/app/assets/javascripts/note.js b/app/assets/javascripts/note.js index 7acc81e5..ef5330b7 100644 --- a/app/assets/javascripts/note.js +++ b/app/assets/javascripts/note.js @@ -42,8 +42,10 @@ replace: prepend: function(id, html) { - this.last_id = id; - $("#notes-list").prepend(html); + if(id != this.last_id) { + this.last_id = id; + $("#notes-list").prepend(html); + } }, getNew: