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/wiki | |
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/wiki')
-rw-r--r-- | app/views/wiki/edit.html.erb | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/app/views/wiki/edit.html.erb b/app/views/wiki/edit.html.erb index 0d4da7e79..db9d1c2ef 100644 --- a/app/views/wiki/edit.html.erb +++ b/app/views/wiki/edit.html.erb @@ -33,14 +33,7 @@ </div> <p><%= submit_tag l(:button_save) %> - <%= link_to_remote l(:label_preview), - { :url => { :controller => 'wiki', :action => 'preview', - :project_id => @project, :id => @page.title }, - :method => :post, - :update => 'preview', - :with => "Form.serialize('wiki_form')", - :complete => "Element.scrollTo('preview')" - }, :accesskey => accesskey(:preview) %></p> + <%= preview_link({:controller => 'wiki', :action => 'preview', :project_id => @project, :id => @page.title }, 'wiki_form') %></p> <%= wikitoolbar_for 'content_text' %> <% end %> |