From 56215ec160277557036d887983aa529cf8d83753 Mon Sep 17 00:00:00 2001 From: bsag Date: Sun, 8 Apr 2007 15:29:46 +0000 Subject: [PATCH] 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 --- tracks/app/views/projects/show.rhtml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tracks/app/views/projects/show.rhtml b/tracks/app/views/projects/show.rhtml index 085a5716..c474f38a 100644 --- a/tracks/app/views/projects/show.rhtml +++ b/tracks/app/views/projects/show.rhtml @@ -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 ) %>