|
|
@ -60,7 +60,7 @@
|
|
|
|
<div style="margin-left: 80px " id="check_desc_hint"></div>
|
|
|
|
<div style="margin-left: 80px " id="check_desc_hint"></div>
|
|
|
|
<div class="orgRow mb10"><span class="ml10">组织URL:</span>
|
|
|
|
<div class="orgRow mb10"><span class="ml10">组织URL:</span>
|
|
|
|
<div class="w607 fr">http://
|
|
|
|
<div class="w607 fr">http://
|
|
|
|
<input type="text" name="organization[domain]" id="domain" value="<%= domain.nil? ? '' : domain.subname %>" class="orgUrlInput" />
|
|
|
|
<input type="text" name="organization[domain]" id="domain" value="<%= domain.nil? ? '' : domain.subname %>" class="orgUrlInput" onfocus="observe_input_to_lowercase($(this));" />
|
|
|
|
.trustie.net<a href="javascript:void(0);" class="linkBlue ml15" style="text-decoration:underline;" onclick="apply_subdomain(<%= @organization.id %>,$('#domain').val());">申请</a>
|
|
|
|
.trustie.net<a href="javascript:void(0);" class="linkBlue ml15" style="text-decoration:underline;" onclick="apply_subdomain(<%= @organization.id %>,$('#domain').val());">申请</a>
|
|
|
|
<% record = OrgMessage.where("organization_id=? and message_type='ApplySubdomain'", @organization.id).order("updated_at desc").first %>
|
|
|
|
<% record = OrgMessage.where("organization_id=? and message_type='ApplySubdomain'", @organization.id).order("updated_at desc").first %>
|
|
|
|
<% if domain.present? and record.present? and record.content == domain.subname %>
|
|
|
|
<% if domain.present? and record.present? and record.content == domain.subname %>
|
|
|
@ -99,7 +99,7 @@
|
|
|
|
<p class="fontBlue fb mb5">添加成员</p>
|
|
|
|
<p class="fontBlue fb mb5">添加成员</p>
|
|
|
|
<%= form_tag url_for(:controller => 'org_member',:action => 'create',:org=>@organization),:id=>'org_member_add_form',:remote=>true do |f|%>
|
|
|
|
<%= form_tag url_for(:controller => 'org_member',:action => 'create',:org=>@organization),:id=>'org_member_add_form',:remote=>true do |f|%>
|
|
|
|
<input type="text" id="not_org_member_search" name="orgAddSearch" placeholder="支持姓名、邮箱、登录名搜索" class="orgAddSearch mb20" />
|
|
|
|
<input type="text" id="not_org_member_search" name="orgAddSearch" placeholder="支持姓名、邮箱、登录名搜索" class="orgAddSearch mb20" />
|
|
|
|
<%= javascript_tag "observeSearchfield('not_org_member_search', null, '#{ escape_javascript org_member_autocomplete_org_member_index_path(:org=>@organization, :format => 'js') }')" %>
|
|
|
|
<%= javascript_tag "observeSearchfield('not_org_member_search', null, '#{ escape_javascript host_with_protocol + "/org_member/org_member_autocomplete?" + {:org=> @organization.id}.to_query }')" %>
|
|
|
|
<div id="principals_for_new_member">
|
|
|
|
<div id="principals_for_new_member">
|
|
|
|
<%= find_user_not_in_current_org_by_name(@project) %>
|
|
|
|
<%= find_user_not_in_current_org_by_name(@project) %>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
@ -132,9 +132,9 @@
|
|
|
|
<div class="mb5">
|
|
|
|
<div class="mb5">
|
|
|
|
<p class="fontGrey3"><span class="fb">域名目录</span>(用户自定义url,可选)</p>
|
|
|
|
<p class="fontGrey3"><span class="fb">域名目录</span>(用户自定义url,可选)</p>
|
|
|
|
<% if domain %>
|
|
|
|
<% if domain %>
|
|
|
|
<span class="fl"><%= domain.subname %>.trustie.net/</span><input class="fl personalUrl ml3" type="text" name="sub_dir">
|
|
|
|
<span class="fl"><%= domain.subname %>.trustie.net/</span><input id="sub_dir" class="fl personalUrl ml3" type="text" name="sub_dir" onfocus="observe_input_to_lowercase($(this));">
|
|
|
|
<% else %>
|
|
|
|
<% else %>
|
|
|
|
<span class="fl">您还没有子域名,请先在左侧信息栏申请子域名</span>
|
|
|
|
<span class="fl" style="width:195px;">您还没有子域名,请先在左侧信息栏申请子域名</span>
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
<div class="cl"></div>
|
|
|
|
<div class="cl"></div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
@ -198,12 +198,25 @@
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// $(document).ready(function(){
|
|
|
|
//输入子域名或者二级目录,自动将输入换成小写
|
|
|
|
// if ( $("#is_public").attr("checked") != true){
|
|
|
|
function observe_input_to_lowercase(id){
|
|
|
|
// alert($(this).attr("checked"));
|
|
|
|
$(id).each(function(){
|
|
|
|
// $("#allow_download").attr("checked", false);
|
|
|
|
var $this = $(this);
|
|
|
|
// $("#allow_download").attr("disabled", true);
|
|
|
|
var old_input = $this.val();
|
|
|
|
// $("#allow_down_hint").html("");
|
|
|
|
var check=function(){
|
|
|
|
// }
|
|
|
|
var val = $this.val();
|
|
|
|
// });
|
|
|
|
if ( old_input != val){
|
|
|
|
|
|
|
|
$this.val(val.toLowerCase());
|
|
|
|
|
|
|
|
old_input = val.toLowerCase();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
var reset = function() {
|
|
|
|
|
|
|
|
if (timer) {
|
|
|
|
|
|
|
|
clearInterval(timer);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
var timer = setInterval(check, 300);
|
|
|
|
|
|
|
|
$this.bind('blur', reset);
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
</script>
|