small fix
This commit is contained in:
parent
545312c966
commit
06fd820095
|
@ -4,7 +4,7 @@ class Admin::PageContentsController < OrbitAdminController
|
||||||
@table_fields = [:page_id, :name,:version,:update_at,:last_modified, :category]
|
@table_fields = [:page_id, :name,:version,:update_at,:last_modified, :category]
|
||||||
@filter_fields = {}
|
@filter_fields = {}
|
||||||
@pages = Page.where(:module=>"page_content").order_by(sort)
|
@pages = Page.where(:module=>"page_content").order_by(sort)
|
||||||
@categories = @module_app.module_app.categories.enabled.authorized(current_user).collect{|c| [c.title, c.id]}
|
@categories = @module_app.categories.enabled.authorized(current_user).collect{|c| [c.title, c.id]}
|
||||||
@pages = search_data(@pages,[:name, :page_id]).page(params[:page]).per(10)
|
@pages = search_data(@pages,[:name, :page_id]).page(params[:page]).per(10)
|
||||||
|
|
||||||
render :partial => "index" if request.xhr?
|
render :partial => "index" if request.xhr?
|
||||||
|
|
Loading…
Reference in New Issue