From 06e44b8e643797c8d5a11478ef6605f49c7220e0 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Wed, 14 May 2008 17:26:13 +0000 Subject: Do not toggle assignable check box when using un/check all permissions links on role form. git-svn-id: http://redmine.rubyforge.org/svn/trunk@1430 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/views/roles/_form.rhtml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/roles/_form.rhtml b/app/views/roles/_form.rhtml index 58dc2af41..4aad45471 100644 --- a/app/views/roles/_form.rhtml +++ b/app/views/roles/_form.rhtml @@ -12,7 +12,7 @@ <% end %>

<%= l(:label_permissions) %>

-
+
<% perms_by_module = @permissions.group_by {|p| p.project_module.to_s} %> <% perms_by_module.keys.sort.each do |mod| %>
<%= mod.blank? ? l(:label_project) : mod.humanize %> @@ -24,6 +24,6 @@ <% end %>
<% end %> -
<%= check_all_links 'role_form' %> +
<%= check_all_links 'permissions' %> <%= hidden_field_tag 'role[permissions][]', '' %>
-- cgit v1.2.3