新建实训需要绑定邮箱

This commit is contained in:
daiao 2017-08-15 09:25:15 +08:00
parent 4e5f9ab43e
commit e7bfc3feb8
1 changed files with 2 additions and 5 deletions

View File

@ -8,7 +8,7 @@
<li><span class="color-orange font-bd"><%= @shixun_all_count %></span><br/><span>全部</span></li>
<li><span class="color-orange font-bd"><%= @current_user_had_passed %></span><br/><span>你已通过</span></li>
<li><span class="color-orange font-bd"><%= @shixun_my_score %></span><br/><span>累计经验值</span></li>
<%= link_to "+&nbsp;新建".html_safe, new_shixun_path, :class => "color-light-green fr font-16" , :style => "line-height:56px" %>
<%#= link_to "+&nbsp;新建".html_safe, new_shixun_path, :class => "color-light-green fr font-16" , :style => "line-height:56px" %>
<a href="javascript:void(0);" class="color-light-green fr font-16" style="line-height:56px" onclick="shixun_new(<%= @mail %>)">+&nbsp;新建</a>
</ul>
</div>
@ -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 %>';
}
}
</script>