diff --git a/app/views/wiki/edit.html.erb b/app/views/wiki/edit.html.erb index 51d8ab9..0d4da7e 100644 --- a/app/views/wiki/edit.html.erb +++ b/app/views/wiki/edit.html.erb @@ -13,13 +13,17 @@ <%= error_messages_for 'content' %>
- <%= fp.select :parent_id, content_tag('option', '', :value => '') + wiki_page_options_for_select(@wiki.pages.all(:include => :parent) - @page.self_and_descendants, @page.parent) %> + <%= fp.select :parent_id, + content_tag('option', '', :value => '') + + wiki_page_options_for_select(@wiki.pages.all(:include => :parent) - + @page.self_and_descendants, @page.parent) %>
<% end %> <% end %> @@ -30,7 +34,8 @@<%= submit_tag l(:button_save) %> <%= link_to_remote l(:label_preview), - { :url => { :controller => 'wiki', :action => 'preview', :project_id => @project, :id => @page.title }, + { :url => { :controller => 'wiki', :action => 'preview', + :project_id => @project, :id => @page.title }, :method => :post, :update => 'preview', :with => "Form.serialize('wiki_form')",