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

9 lines
327 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 %>
// modified by longjun 去掉中文引用zh.yml中的标签
2014-04-03 22:38:18 +08:00
<% if @state == 0 %>
alert(<%= l(:notice_successful_join) %>)
2014-04-03 22:38:18 +08:00
<% else %>
alert(<%= l(:notice_account_wrong_password) %>)
2014-04-03 22:38:18 +08:00
<% end %>
<% end %>