diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2006-10-21 10:38:53 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2006-10-21 10:38:53 +0000 |
commit | 6a0022d7a146d7827fc7acccde07cd3c159e2cfb (patch) | |
tree | f2e07525782e86326eb7063c634725fc1f4b49e3 /redmine/app/controllers/custom_fields_controller.rb | |
parent | e4d4a12c6a8a5507600b50e08c96da99789490ec (diff) | |
download | redmine-6a0022d7a146d7827fc7acccde07cd3c159e2cfb.tar.gz redmine-6a0022d7a146d7827fc7acccde07cd3c159e2cfb.zip |
ajaxified paginators
git-svn-id: http://redmine.rubyforge.org/svn/trunk@33 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'redmine/app/controllers/custom_fields_controller.rb')
-rw-r--r-- | redmine/app/controllers/custom_fields_controller.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/redmine/app/controllers/custom_fields_controller.rb b/redmine/app/controllers/custom_fields_controller.rb index d0ffddf7f..bfa152fd1 100644 --- a/redmine/app/controllers/custom_fields_controller.rb +++ b/redmine/app/controllers/custom_fields_controller.rb @@ -21,11 +21,12 @@ class CustomFieldsController < ApplicationController def index list - render :action => 'list' + render :action => 'list' unless request.xhr? end def list - @custom_field_pages, @custom_fields = paginate :custom_fields, :per_page => 15 + @custom_field_pages, @custom_fields = paginate :custom_fields, :per_page => 15
+ render :action => "list", :layout => false if request.xhr? end def new
|