Fixed: changing user/roles of project member not possible without javascript (#4852)

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3483 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2010-02-24 21:23:20 +00:00
parent 46ecc488a9
commit f7bd0801f6
2 changed files with 7 additions and 1 deletions

View File

@ -21,7 +21,7 @@
<% if authorize_for('members', 'edit') %>
<% remote_form_for(:member, member, :url => {:controller => 'members', :action => 'edit', :id => member},
:method => :post,
:html => { :id => "member-#{member.id}-roles-form", :style => 'display:none;' }) do |f| %>
:html => { :id => "member-#{member.id}-roles-form", :class => 'hol' }) do |f| %>
<p><% roles.each do |role| %>
<label><%= check_box_tag 'member[role_ids][]', role.id, member.roles.include?(role),
:disabled => member.member_roles.detect {|mr| mr.role_id == role.id && !mr.inherited_from.nil?} %> <%=h role %></label><br />

View File

@ -207,3 +207,9 @@ Ajax.Responders.register({
}
}
});
Event.observe(window, 'load', function() {
$$('.hol').each(function(el) {
el.hide();
});
});