dev_haigong
daiao 6 years ago
parent dad2fb6b6f
commit 40c19ae0d5

@ -34,7 +34,7 @@ class EcYearsController < ApplicationController
@major_manager = true @major_manager = true
@btn_text = @major_school.template_major && User.current.admin? ? "立即配置" : @btn_text = @major_school.template_major && User.current.admin? ? "立即配置" :
(!@major_school.template_major && @major_manager ? "立即配置" : "查看") (!@major_school.template_major && @major_manager ? "立即配置" : "查看")
@years = @major_school.ec_years @years = EcYear.where(:ec_major_school_id => @major_school.id)
@years = paginateHelper @years, 10 @years = paginateHelper @years, 10
respond_to do |format| respond_to do |format|
format.js format.js

@ -1,6 +1,6 @@
<% if @status.to_i == -1 %> <% if @status.to_i == -1 %>
notice_box("该界别已经存在,请勿重复创建") notice_box("该界别已经存在,请勿重复创建")
<% else %> <% else %>
window.location.reload(); //window.location.reload();
//$("#year_list").html('<%#= j(render :partial => "ec_major_schools/year_list") %>') $("#year_list").html('<%= j(render :partial => "ec_major_schools/year_list") %>')
<% end %> <% end %>
Loading…
Cancel
Save