Commit 3b9cd69a authored by maeda's avatar maeda

Moving a wiki page to a different project should refresh parent page list (#22975).

Patch by Mizuki ISHIKAWA.


git-svn-id: https://svn.redmine.org/redmine/trunk@17284 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent 7bbbc98d
......@@ -13,6 +13,9 @@
<p><%= f.check_box :is_start_page, :label => :field_start_page, :disabled => @page.is_start_page %></p>
<% end %>
<p><%= f.check_box :redirect_existing_links %></p>
<% if @page.safe_attribute? 'wiki_id' %>
<p><%= f.select :wiki_id, wiki_page_wiki_options_for_select(@page), :label => :label_project %></p>
<% end %>
<p><%= f.select :parent_id,
content_tag('option', '', :value => '') +
wiki_page_options_for_select(
......@@ -20,10 +23,16 @@
@page.parent),
:label => :field_parent_title %></p>
<% if @page.safe_attribute? 'wiki_id' %>
<p><%= f.select :wiki_id, wiki_page_wiki_options_for_select(@page), :label => :label_project %></p>
<% end %>
</div>
<%= submit_tag l(:button_rename) %>
<% end %>
<%= javascript_tag do %>
$('#wiki_page_wiki_id').change(function() {
$.ajax({
url: '<%= rename_project_wiki_page_path(@wiki, :format => 'js') %>',
type: 'get',
data: { 'wiki_page[wiki_id]': $('#wiki_page_wiki_id').val() }
});
});
<% end %>
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