]> source.dussan.org Git - redmine.git/commitdiff
Fixed: wiki preview doesn't work on long entries.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 25 Aug 2007 14:51:06 +0000 (14:51 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 25 Aug 2007 14:51:06 +0000 (14:51 +0000)
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

index 43f2ba5fa7892440c0f65a79900332bda740877e..56ed5d8d3e3d41006e64cf4290b6d56664a55704 100644 (file)
 <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>