Commit 7ac38b7a1ed401cfac6156f3efaa1bb6d7b67e43

Authored by Dmitriy Zaporozhets
1 parent e29a2566

fixed duplicate on wall

Showing 1 changed file with 4 additions and 2 deletions   Show diff stats
app/assets/javascripts/note.js
... ... @@ -42,8 +42,10 @@ replace:
42 42  
43 43 prepend:
44 44 function(id, html) {
45   - this.last_id = id;
46   - $("#notes-list").prepend(html);
  45 + if(id != this.last_id) {
  46 + this.last_id = id;
  47 + $("#notes-list").prepend(html);
  48 + }
47 49 },
48 50  
49 51 getNew:
... ...