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

dev_zanle
ouyangxuhua 10 years ago
parent e98338bf22
commit be590497b9

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

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