3241缺陷的修复
This commit is contained in:
parent
266e936d67
commit
dc11ad31f1
|
@ -38,7 +38,7 @@ module MembersHelper
|
||||||
scope = []
|
scope = []
|
||||||
end
|
end
|
||||||
principals = paginateHelper scope,10
|
principals = paginateHelper scope,10
|
||||||
s = content_tag('ul', project_member_check_box_tags_ex('membership[user_ids][]', principals), :class => 'mb5')
|
s = content_tag('ul', project_member_check_box_tags_ex('membership[user_ids][]', principals), :class => 'mb5', :id => 'principals')
|
||||||
links = pagination_links_full(@obj_pages, @obj_count, :per_page_links => false, :remote => false, :flag => true){|text, parameters, options|
|
links = pagination_links_full(@obj_pages, @obj_count, :per_page_links => false, :remote => false, :flag => true){|text, parameters, options|
|
||||||
link_to text, autocomplete_project_memberships_path(project, parameters.merge(:q => params[:q],:flag => true, :format => 'js')), :remote => true
|
link_to text, autocomplete_project_memberships_path(project, parameters.merge(:q => params[:q],:flag => true, :format => 'js')), :remote => true
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,9 @@
|
||||||
<% if @project%>
|
<% if @project%>
|
||||||
|
var checked = $("#principals input:checked").size();
|
||||||
|
if(checked > 0)
|
||||||
|
{
|
||||||
|
alert('翻页或搜索后将丢失当前选择的用户数据!');
|
||||||
|
}
|
||||||
<% if @flag == "true"%>
|
<% if @flag == "true"%>
|
||||||
$('#principals_for_new_member').html('<%= escape_javascript(render_project_members(@project)) %>');
|
$('#principals_for_new_member').html('<%= escape_javascript(render_project_members(@project)) %>');
|
||||||
<% else%>
|
<% else%>
|
||||||
|
|
Loading…
Reference in New Issue