diff --git a/app/views/projects/settings/_members.rhtml b/app/views/projects/settings/_members.rhtml index c0d48b9c2..237f522c6 100644 --- a/app/views/projects/settings/_members.rhtml +++ b/app/views/projects/settings/_members.rhtml @@ -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| %>

<% roles.each do |role| %>
diff --git a/public/javascripts/application.js b/public/javascripts/application.js index 57419d0b0..787b9904c 100644 --- a/public/javascripts/application.js +++ b/public/javascripts/application.js @@ -207,3 +207,9 @@ Ajax.Responders.register({ } } }); + +Event.observe(window, 'load', function() { + $$('.hol').each(function(el) { + el.hide(); + }); +});