ajaxified paginators

git-svn-id: http://redmine.rubyforge.org/svn/trunk@33 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2006-10-21 10:38:53 +00:00
parent e4d4a12c6a
commit 6a0022d7a1
12 changed files with 60 additions and 33 deletions

View File

@@ -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