diff options
| author | Dmitriy Zaporozhets <dzaporozhets@sphereconsultinginc.com> | 2011-11-06 23:32:37 +0200 |
|---|---|---|
| committer | Dmitriy Zaporozhets <dzaporozhets@sphereconsultinginc.com> | 2011-11-06 23:32:37 +0200 |
| commit | 7ac38b7a1ed401cfac6156f3efaa1bb6d7b67e43 (patch) | |
| tree | 3dd433fab690cdba1dee25174b2540216fa97eea | |
| parent | e29a25662dac63c2f1ef0041eeb7b6fd24d3896e (diff) | |
| download | gitlab-ce-7ac38b7a1ed401cfac6156f3efaa1bb6d7b67e43.tar.gz | |
fixed duplicate on wall
| -rw-r--r-- | app/assets/javascripts/note.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/app/assets/javascripts/note.js b/app/assets/javascripts/note.js index 7acc81e5bff..ef5330b7d4f 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: |
