small fix again

This commit is contained in:
Harry Bomrah 2014-12-30 20:28:20 +08:00
parent 40091d9683
commit 13e7720b3a
1 changed files with 2 additions and 2 deletions

View File

@ -4,12 +4,12 @@ class Admin::RegisteredSitesController < OrbitAdminController
def index
@registeredsites = RegisteredSite.all.order_by(sort)
.with_categories(filters("category"))
.with_tags(filters("tag"))
.with_tags(filters("tag")).desc(:created_at)
@table_fields = table_fields
@tags = @module_app.tags
@categories = @module_app.categories.enabled
@filter_fields = filter_fields_without_status(@categories, @tags)
@registeredsites = search_data(@registeredsites,[:title]).page(params[:page].per(10).desc(:created_at))
@registeredsites = search_data(@registeredsites,[:title]).page(params[:page]).per(10)
if request.xhr?
render :partial => "index"