summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dzaporozhets@sphereconsultinginc.com>2011-11-06 23:32:37 +0200
committerDmitriy Zaporozhets <dzaporozhets@sphereconsultinginc.com>2011-11-06 23:32:37 +0200
commit7ac38b7a1ed401cfac6156f3efaa1bb6d7b67e43 (patch)
tree3dd433fab690cdba1dee25174b2540216fa97eea
parente29a25662dac63c2f1ef0041eeb7b6fd24d3896e (diff)
downloadgitlab-ce-7ac38b7a1ed401cfac6156f3efaa1bb6d7b67e43.tar.gz
fixed duplicate on wall
-rw-r--r--app/assets/javascripts/note.js6
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: