@@ -1,15 +1,15 | |||
|
1 | 1 | <h2><%= link_to h(@board.name), :controller => 'boards', :action => 'show', :project_id => @project, :id => @board %> » <%= l(:label_message_new) %></h2> |
|
2 | 2 | |
|
3 | 3 | <% form_for :message, @message, :url => {:action => 'new'}, :html => {:multipart => true, :id => 'message-form'} do |f| %> |
|
4 | 4 | <%= render :partial => 'form', :locals => {:f => f} %> |
|
5 | 5 | <%= submit_tag l(:button_create) %> |
|
6 |
<%= link_to_remote l(:label_preview), |
|
|
6 | <%= link_to_remote l(:label_preview), | |
|
7 | 7 | { :url => { :controller => 'messages', :action => 'preview', :board_id => @board }, |
|
8 | 8 | :method => 'post', |
|
9 | 9 | :update => 'preview', |
|
10 | 10 | :with => "Form.serialize('message-form')", |
|
11 | 11 | :complete => "Element.scrollTo('preview')" |
|
12 | 12 | }, :accesskey => accesskey(:preview) %> |
|
13 | 13 | <% end %> |
|
14 | 14 | |
|
15 | 15 | <div id="preview" class="wiki"></div> |
General Comments 0
You need to be logged in to leave comments.
Login now