新建实训需要绑定邮箱
This commit is contained in:
parent
4e5f9ab43e
commit
e7bfc3feb8
|
|
@ -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 "+ 新建".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" %>
|
||||
<a href="javascript:void(0);" class="color-light-green fr font-16" style="line-height:56px" onclick="shixun_new(<%= @mail %>)">+ 新建</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>
|
||||
Loading…
Reference in New Issue