Unify forms for discussions and main target.

Allows previews and uploads in all forms.
Also fixes #1730
This commit is contained in:
Riyad Preukschas 2012-12-02 20:47:09 +01:00
parent fbd345ea20
commit 6fc10fa256
7 changed files with 175 additions and 169 deletions

View file

@ -1,10 +1,9 @@
%ul#notes-list.notes
.notes-status
.js-main-target-form
- if can? current_user, :write_note, @project
#note-forms.js-note-forms
= render "notes/common_form"
= render "notes/discussion_note_form"
= render "notes/common_form"
:javascript
$(function(){