gitlabhq/app/views/notes/_create_common_note.js.haml
Riyad Preukschas c4a7824a8c Fix wall notes
2012-12-03 22:51:56 +01:00

10 lines
378 B
Plaintext

- 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
$(".note-form-holder").replaceWith("#{escape_javascript(render 'notes/common_form')}");
GitLab.GfmAutoComplete.setup();