diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-08-25 14:51:06 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-08-25 14:51:06 +0000 |
commit | 72714d86f6b310391bab592e8ea82c23d2af0f9a (patch) | |
tree | fef15c2bc0ee23bfe014220aa7e707dadef24e58 /app/views/wiki | |
parent | c754e017dcc49b6c3bdd14ad0fe4553a044b3c73 (diff) | |
download | redmine-72714d86f6b310391bab592e8ea82c23d2af0f9a.tar.gz redmine-72714d86f6b310391bab592e8ea82c23d2af0f9a.zip |
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
Diffstat (limited to 'app/views/wiki')
-rw-r--r-- | app/views/wiki/edit.rhtml | 20 |
1 files 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 @@ <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> |