Commit 7ac38b7a1ed401cfac6156f3efaa1bb6d7b67e43
1 parent
e29a2566
Exists in
master
and in
4 other branches
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,8 +42,10 @@ replace: | ||
| 42 | 42 | ||
| 43 | prepend: | 43 | prepend: |
| 44 | function(id, html) { | 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 | getNew: | 51 | getNew: |