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
pull/351/head
Jean-Philippe Lang 15 years ago
parent 46ecc488a9
commit f7bd0801f6
  1. 2
      app/views/projects/settings/_members.rhtml
  2. 6
      public/javascripts/application.js

@ -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 />

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

Loading…
Cancel
Save