parent
7abd0b4e39
commit
b0a664273f
|
@ -251,7 +251,6 @@ F cats = files_by_cateogry.keys.collect do |cat|
|
|||
end
|
||||
|
||||
def widget
|
||||
begin
|
||||
check_cat_sort_data()
|
||||
if ArchiveSortOrder.count == 0
|
||||
ArchiveSortOrder.new('sort_order' => false).save
|
||||
|
@ -261,7 +260,6 @@ F cats = files_by_cateogry.keys.collect do |cat|
|
|||
@categories = []
|
||||
if categories.first == "all"
|
||||
categories = OrbitHelper.widget_module_app.categories
|
||||
puts categories
|
||||
categories_sort = get_sorted_cat_with_filter(categories,'orm')
|
||||
@categories = categories_sort.collect do |cat|
|
||||
{
|
||||
|
@ -317,9 +315,6 @@ F cats = files_by_cateogry.keys.collect do |cat|
|
|||
"archives" => archives
|
||||
}
|
||||
end
|
||||
rescue => e
|
||||
puts e
|
||||
end
|
||||
{
|
||||
"categories" => cats,
|
||||
"extras" => {"widget-title" => "Archives","more_url" => (OrbitHelper.widget_more_url + '?data_count=' + page_data_count.to_s)}
|
||||
|
|
Loading…
Reference in New Issue