From e7bfc3feb87df2cbf4b350a68c31f4c9e4fd090c Mon Sep 17 00:00:00 2001 From: daiao <358551898@qq.com> Date: Tue, 15 Aug 2017 09:25:15 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=BB=BA=E5=AE=9E=E8=AE=AD=E9=9C=80?= =?UTF-8?q?=E8=A6=81=E7=BB=91=E5=AE=9A=E9=82=AE=E7=AE=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/shixuns/index.html.erb | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) 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