mirror of
https://github.com/TracksApp/tracks.git
synced 2026-02-03 06:21:49 +01:00
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:
parent
a4ed53f148
commit
56215ec160
1 changed files with 1 additions and 1 deletions
|
|
@ -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 ) %>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue