2015-11-12 20:57:41 +08:00
|
|
|
<% if !@org_name.blank? %>
|
|
|
|
<%if @check == false %>
|
|
|
|
$checkName = false
|
|
|
|
<% if @config_page%>
|
|
|
|
$("#check_name_hint").html('<span class="c_red">名字不能重复<span>').show();
|
|
|
|
<% else%>
|
|
|
|
$("#organization_name_notice").html('<span class="c_red">名字不能重复<span>').show();
|
2015-11-05 17:57:07 +08:00
|
|
|
|
2015-11-12 20:57:41 +08:00
|
|
|
<%end%>
|
2015-11-05 17:57:07 +08:00
|
|
|
|
2015-11-12 20:57:41 +08:00
|
|
|
<% else %>
|
|
|
|
$checkName = true;
|
|
|
|
<% if @config_page%>
|
|
|
|
$("#check_name_hint").html('<span class="c_green">名字可以使用</span>').show();
|
|
|
|
<% else%>
|
2015-11-05 17:57:07 +08:00
|
|
|
|
2015-11-12 20:57:41 +08:00
|
|
|
$("#organization_name_notice").html('<span class="c_green">名字可以使用</span>').show();
|
|
|
|
<%end%>
|
2015-11-05 17:57:07 +08:00
|
|
|
<%end%>
|
2015-11-12 20:57:41 +08:00
|
|
|
<% else %>
|
|
|
|
$("#check_name_hint").html('<span class="c_green">名字不能为空</span>').show();
|
|
|
|
<% end %>
|