From 72714d86f6b310391bab592e8ea82c23d2af0f9a Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sat, 25 Aug 2007 14:51:06 +0000 Subject: [PATCH] Fixed: wiki preview doesn't work on long entries. POST is now used for previews instead of GET. git-svn-id: http://redmine.rubyforge.org/svn/trunk@658 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/views/wiki/edit.rhtml | 20 +++----------------- 1 file changed, 3 insertions(+), 17 deletions(-) diff --git a/app/views/wiki/edit.rhtml b/app/views/wiki/edit.rhtml index 43f2ba5fa..56ed5d8d3 100644 --- a/app/views/wiki/edit.rhtml +++ b/app/views/wiki/edit.rhtml @@ -17,25 +17,11 @@

<%= submit_tag l(:button_save) %> <%= link_to_remote l(:label_preview), { :url => { :controller => 'wiki', :action => 'preview', :id => @project, :page => @page.title }, - :method => 'get', + :method => 'post', :update => 'preview', :with => "Form.serialize('wiki_form')" } %>

- +<%= wikitoolbar_for 'content_text' %> <% end %> -<% if Setting.text_formatting == 'textile' %> -<%= javascript_include_tag 'jstoolbar' %> - -<% end %> - -
\ No newline at end of file +