summaryrefslogtreecommitdiffstats
path: root/app/controllers/groups_controller.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2013-01-18 17:57:16 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2013-01-18 17:57:16 +0000
commit1257f1960ff6d59b2f3f7890777d3481f1800430 (patch)
tree6be67b6fc92cb8a408ed002fc6fe219ea566bb9a /app/controllers/groups_controller.rb
parent10c96dba8b79822e1d54ef58bb8139851cf30c80 (diff)
downloadredmine-1257f1960ff6d59b2f3f7890777d3481f1800430.tar.gz
redmine-1257f1960ff6d59b2f3f7890777d3481f1800430.zip
Adds pagination to users list when adding project or group members (#9549).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11200 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers/groups_controller.rb')
-rw-r--r--app/controllers/groups_controller.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/app/controllers/groups_controller.rb b/app/controllers/groups_controller.rb
index d0a9dad09..b2f9d6af5 100644
--- a/app/controllers/groups_controller.rb
+++ b/app/controllers/groups_controller.rb
@@ -109,8 +109,9 @@ class GroupsController < ApplicationController
end
def autocomplete_for_user
- @users = User.active.not_in_group(@group).like(params[:q]).all(:limit => 100)
- render :layout => false
+ respond_to do |format|
+ format.js
+ end
end
def edit_membership