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
This commit is contained in:
Jean-Philippe Lang 2007-08-25 14:51:06 +00:00
parent c754e017dc
commit 72714d86f6
1 changed files with 3 additions and 17 deletions

View File

@ -17,25 +17,11 @@
<p><%= submit_tag l(:button_save) %> <p><%= submit_tag l(:button_save) %>
<%= link_to_remote l(:label_preview), <%= link_to_remote l(:label_preview),
{ :url => { :controller => 'wiki', :action => 'preview', :id => @project, :page => @page.title }, { :url => { :controller => 'wiki', :action => 'preview', :id => @project, :page => @page.title },
:method => 'get', :method => 'post',
:update => 'preview', :update => 'preview',
:with => "Form.serialize('wiki_form')" :with => "Form.serialize('wiki_form')"
} %></p> } %></p>
<%= wikitoolbar_for 'content_text' %>
<% end %> <% end %>
<% if Setting.text_formatting == 'textile' %> <div id="preview" class="wiki"></div>
<%= javascript_include_tag 'jstoolbar' %>
<script type="text/javascript">
//<![CDATA[
if (document.getElementById) {
if (document.getElementById('content_text')) {
var commentTb = new jsToolBar(document.getElementById('content_text'));
commentTb.draw();
}
}
//]]>
</script>
<% end %>
<div id="preview" class="wiki"></div>