diff --git a/app/views/shixuns/index.html.erb b/app/views/shixuns/index.html.erb index 3ad03f726..34f13591e 100644 --- a/app/views/shixuns/index.html.erb +++ b/app/views/shixuns/index.html.erb @@ -8,7 +8,7 @@
  • <%= @shixun_all_count %>
    全部
  • <%= @current_user_had_passed %>
    你已通过
  • <%= @shixun_my_score %>
    累计经验值
  • - <%= link_to "+ 新建".html_safe, new_shixun_path, :class => "color-light-green fr font-16" , :style => "line-height:56px" %> + <%#= link_to "+ 新建".html_safe, new_shixun_path, :class => "color-light-green fr font-16" , :style => "line-height:56px" %> + 新建 @@ -382,10 +382,7 @@ if(mail){ notice_box_redirect('<%= security_settings_path %>', '新建实训,请先绑定邮箱'); }else{ - $.ajax({ - url: '<%= new_shixun_path %>', - dataType: 'text' - }) + window.location.href= '<%= new_shixun_path %>'; } } \ No newline at end of file