##// END OF EJS Templates
remove trailing white-spaces from app/views/journals/_notes_form.html.erb...
Toshi MARUYAMA -
r7120:9416de069e37
parent child
Show More
@@ -1,21 +1,21
1 1 <% form_remote_tag(:url => {}, :html => { :id => "journal-#{@journal.id}-form" }) do %>
2 2 <%= text_area_tag :notes, @journal.notes,
3 3 :id => "journal_#{@journal.id}_notes",
4 :class => 'wiki-edit',
4 :class => 'wiki-edit',
5 5 :rows => (@journal.notes.blank? ? 10 : [[10, @journal.notes.length / 50].max, 100].min) %>
6 6 <%= call_hook(:view_journals_notes_form_after_notes, { :journal => @journal}) %>
7 7 <p><%= submit_tag l(:button_save) %>
8 <%= link_to_remote l(:label_preview),
8 <%= link_to_remote l(:label_preview),
9 9 { :url => preview_issue_path(:project_id => @project, :id => @journal.issue),
10 10 :method => 'post',
11 11 :update => "journal_#{@journal.id}_preview",
12 12 :with => "Form.serialize('journal-#{@journal.id}-form')",
13 13 :complete => "Element.scrollTo('journal_#{@journal.id}_preview')"
14 14 }, :accesskey => accesskey(:preview) %>
15 15 |
16 16 <%= link_to l(:button_cancel), '#', :onclick => "Element.remove('journal-#{@journal.id}-form'); " +
17 17 "Element.show('journal-#{@journal.id}-notes'); return false;" %></p>
18 18
19 19 <div id="journal_<%= @journal.id %>_preview" class="wiki"></div>
20 20 <% end %>
21 21 <%= wikitoolbar_for "journal_#{@journal.id}_notes" %>
General Comments 0
You need to be logged in to leave comments. Login now