summaryrefslogtreecommitdiff
path: root/app/views/notes
diff options
context:
space:
mode:
authorRiyad Preukschas <riyad@informatik.uni-bremen.de>2012-11-22 02:57:22 +0100
committerRiyad Preukschas <riyad@informatik.uni-bremen.de>2012-12-03 22:51:56 +0100
commitc4a7824a8c6487b24379f7f85c26f182bbc1dee9 (patch)
treec23fdbf95bbcd8b3a46e2eaae6021e62a0bc3ff3 /app/views/notes
parent140652e9b019addaf7022e18b6816ecb36eee80c (diff)
downloadgitlab-ce-c4a7824a8c6487b24379f7f85c26f182bbc1dee9.tar.gz
Fix wall notes
Diffstat (limited to 'app/views/notes')
-rw-r--r--app/views/notes/_create_common_note.js.haml3
1 files changed, 3 insertions, 0 deletions
diff --git a/app/views/notes/_create_common_note.js.haml b/app/views/notes/_create_common_note.js.haml
index 57c768b8088..20bc07568a0 100644
--- a/app/views/notes/_create_common_note.js.haml
+++ b/app/views/notes/_create_common_note.js.haml
@@ -1,4 +1,7 @@
- if note.valid?
+ - if note.for_wall?
+ NoteList.appendNewWallNote(#{note.id}, "#{escape_javascript(render "notes/note", note: note)}");
+ - else
NoteList.appendNewNote(#{note.id}, "#{escape_javascript(render "notes/note", note: note)}");
- else