23 lines
1.1 KiB
Plaintext
23 lines
1.1 KiB
Plaintext
//$("#search_orgs_result_list").html("");
|
|
////$("#paginator").css("display", "none");
|
|
$("#added_orgs").html("");
|
|
$("#added_orgs").html('<%= escape_javascript(render :partial => "projects/settings/added_orgs", :locals => {:orgs => @project.organizations, :project_id => @project.id}) %>')
|
|
//$.ajax({
|
|
// url: '<%#= url_for(:controller => 'projects', :action => 'search_public_orgs_not_in_project') %>'+'?page=1',
|
|
// type:'get'
|
|
//});
|
|
$("#search_orgs_result_list").html("");
|
|
$("#search_orgs_result_list").append('<ul class="ml20">');
|
|
<% @orgs_not_in_project.each do |org|%>
|
|
link = "<li><label><input type='checkbox'class='mr5 fl mt3' name='orgNames[]' value='<%=org.id%>'/><span class='relateOrgName fl'> <%=org.name %> </span></label></li><div class='cl mt5'></div>";
|
|
$("#search_orgs_result_list").append(link );
|
|
<%end %>
|
|
$("#search_orgs_result_list").append('</ul>')
|
|
<% if @org_count > 10 %>
|
|
$("#paginator").html(' <%= pagination_links_full @orgs_page, @org_count ,:per_page_links => true,:remote =>true,:flag=>true%>');
|
|
$("#paginator").css("display", "block");
|
|
<% else %>
|
|
$("#paginator").css("display", "none");
|
|
<% end %>
|
|
|