组织文章设为首页后,跳转至首页

This commit is contained in:
ouyangxuhua 2015-12-11 16:58:00 +08:00
parent e98338bf22
commit be590497b9
2 changed files with 2 additions and 2 deletions

View File

@ -3,7 +3,7 @@
<%= render :partial => 'project_file_new', locals: {project: @project} %>
<% elsif @container_type == 1 %>
<%= render :partial => 'course_file', locals: {course: @course} %>
<% elsif @container_type == 2 %>
<% elsif @container_type == 2 %>
<%= render :partial => 'files/subfield_files', locals: {org_subfield: @org_subfield} %>
<% end %>
</div>

View File

@ -1,2 +1,2 @@
//location.reload();
window.location.href ='<%= organization_path(@org, :show_homepage => params[:show_homepage])%>';
window.location.href ='<%= organization_path(@org, :show_homepage => 1)%>';