From f7bd0801f6dc01dd478c78ff5867de72cd9a6146 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Wed, 24 Feb 2010 21:23:20 +0000 Subject: [PATCH] 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 --- app/views/projects/settings/_members.rhtml | 2 +- public/javascripts/application.js | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) 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(); + }); +});