竞赛的设为公开、设为私有用新版弹框
This commit is contained in:
parent
cb8d295088
commit
68f97d91fb
|
@ -2,7 +2,7 @@
|
|||
<ul>
|
||||
<li class="homepagePostSettingIcon">
|
||||
<ul class="homepagePostSettiongText">
|
||||
<li><%= link_to !@contest.is_public ? "设为公开" : "设为私有", {:controller => 'contests', :action => 'private_or_public', :id => @contest},:remote=>true,:confirm=>"您确定要设置为"+(!@contest.is_public ? "公开" : "私有")+"吗", :class => "postOptionLink" %></li>
|
||||
<li><a href="javascript:void(0);" class="postOptionLink" onclick="delete_confirm_box('<%=private_or_public_contest_path(@contest) %>', '您确定要设置为<%= !@contest.is_public ? '公开' : '私有'%>吗')"><%= !@contest.is_public ? '设为公开' : '设为私有'%></a></li>
|
||||
<% if @contest.invite_code_halt == 0 %>
|
||||
<li><a href="javascript:void(0);" class="postOptionLink" onclick="alert_halt_code();">暂停加入</a></li>
|
||||
<% elsif @contest.invite_code_halt == 1 %>
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
hideModal();
|
||||
$("#contest_base_info").html('<%=escape_javascript(render :partial=>'contests/contest_base_info') %>');
|
||||
if(document.getElementById("contest_is_public")) {
|
||||
<% if !@contest.is_public %>
|
||||
|
|
Loading…
Reference in New Issue