diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-07-18 17:47:19 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-07-18 17:47:19 +0000 |
commit | ff68fff80ed1cc9f95587581be9eb641d7a776e5 (patch) | |
tree | 8401052d01792a36dbe5486379e084a574a33c48 /app/views/boards | |
parent | bb2af97dcf4ba9372ce78ba8163cc3dc2794a7bb (diff) | |
download | redmine-ff68fff80ed1cc9f95587581be9eb641d7a776e5.tar.gz redmine-ff68fff80ed1cc9f95587581be9eb641d7a776e5.zip |
Adds a helper for preview links.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10031 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/boards')
-rw-r--r-- | app/views/boards/show.html.erb | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/app/views/boards/show.html.erb b/app/views/boards/show.html.erb index 523dfea45..3d31014d7 100644 --- a/app/views/boards/show.html.erb +++ b/app/views/boards/show.html.erb @@ -14,13 +14,7 @@ <%= form_for @message, :url => {:controller => 'messages', :action => 'new', :board_id => @board}, :html => {:multipart => true, :id => 'message-form'} do |f| %> <%= render :partial => 'messages/form', :locals => {:f => f} %> <p><%= submit_tag l(:button_create) %> - <%= link_to_remote l(:label_preview), - { :url => { :controller => 'messages', :action => 'preview', :board_id => @board }, - :method => 'post', - :update => 'preview', - :with => "Form.serialize('message-form')", - :complete => "Element.scrollTo('preview')" - }, :accesskey => accesskey(:preview) %> | + <%= preview_link({:controller => 'messages', :action => 'preview', :board_id => @board}, 'message-form') %> | <%= link_to l(:button_cancel), "#", :onclick => 'Element.hide("add-message")' %></p> <% end %> <div id="preview" class="wiki"></div> |