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

9 lines
327 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

$("#<%=object_id%>").replaceWith('<%= escape_javascript join_in_competition(@contest, user) %>');
<% if @state %>
// modified by longjun 去掉中文引用zh.yml中的标签
<% if @state == 0 %>
alert(<%= l(:notice_successful_join) %>)
<% else %>
alert(<%= l(:notice_account_wrong_password) %>)
<% end %>
<% end %>