socialforge/app/views/contests/_set_join.js.erb

8 lines
216 B
Plaintext
Raw Normal View History

2014-04-03 22:38:18 +08:00
$("#<%=object_id%>").replaceWith('<%= escape_javascript join_in_competition(@contest, user) %>');
<% if @state %>
<% if @state == 0 %>
alert("加入成功")
<% else %>
alert("密码错误")
<% end %>
<% end %>