diff --git a/app/controllers/admin/registered_sites_controller.rb b/app/controllers/admin/registered_sites_controller.rb index 590257f..3e0a2f1 100644 --- a/app/controllers/admin/registered_sites_controller.rb +++ b/app/controllers/admin/registered_sites_controller.rb @@ -9,7 +9,7 @@ class Admin::RegisteredSitesController < OrbitAdminController @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) + @registeredsites = search_data(@registeredsites,[:title,:site_domain]).page(params[:page]).per(10) if request.xhr? render :partial => "index" @@ -51,7 +51,7 @@ class Admin::RegisteredSitesController < OrbitAdminController @registeredsites = RegisteredSite.all.order_by(sort) .with_categories(filters("category")) .with_tags(filters("tag")).desc(:created_at) - @registeredsites = search_data(@registeredsites,[:title]).page(params[:page]).per(10) + @registeredsites = search_data(@registeredsites,[:title,:site_domain]).page(params[:page]).per(10) # render :partial => "index" end @@ -61,11 +61,11 @@ class Admin::RegisteredSitesController < OrbitAdminController registeredsite.destroy end @table_fields = table_fields - + @registeredsites = RegisteredSite.all.order_by(sort) .with_categories(filters("category")) .with_tags(filters("tag")).desc(:created_at) - @registeredsites = search_data(@registeredsites,[:title]).page(params[:page]).per(10) + @registeredsites = search_data(@registeredsites,[:title,:site_domain]).page(params[:page]).per(10) end private