Commit 72714d86 authored by Jean-Philippe Lang's avatar Jean-Philippe Lang

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
parent c754e017
......@@ -17,25 +17,11 @@
<p><%= 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')"
} %></p>
<% end %>
<% if Setting.text_formatting == 'textile' %>
<%= 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>
<%= wikitoolbar_for 'content_text' %>
<% end %>
<div id="preview" class="wiki"></div>
\ No newline at end of file
<div id="preview" class="wiki"></div>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment