diff options
Diffstat (limited to 'app/views')
| -rw-r--r-- | app/views/notes/_create_common_note.js.haml | 3 |
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 |
