When a new project note is added (project pages), the notes text field is cleared after the note is submitted, so that it is empty ready for the next note.

Fixes #480



git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@527 a4c988fc-2ded-0310-b66e-134b36920a42
This commit is contained in:
bsag 2007-04-08 15:29:46 +00:00
parent a4ed53f148
commit 56215ec160

View file

@ -25,7 +25,7 @@
:method => :post,
:update => "notes",
:position => "bottom",
:complete => "new Effect.Highlight('notes');$('empty-n').hide();",
:complete => "new Effect.Highlight('notes');$('empty-n').hide();Form.reset('form-new-note');",
:html => {:id=>'form-new-note', :class => 'inline-form'} do %>
<%= hidden_field( "new_note", "project_id", "value" => "#{@project.id}" ) %>
<%= text_area( "new_note", "body", "cols" => 50, "rows" => 3, "tabindex" => 1 ) %>