From 7ac38b7a1ed401cfac6156f3efaa1bb6d7b67e43 Mon Sep 17 00:00:00 2001 From: Dmitriy Zaporozhets Date: Sun, 6 Nov 2011 23:32:37 +0200 Subject: [PATCH] fixed duplicate on wall --- app/assets/javascripts/note.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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: