Skip to content

Commit

Permalink
Merge pull request railsadminteam#3 from ekoshairy/master
Browse files Browse the repository at this point in the history
Sorting the category dropdown list
  • Loading branch information
Saher El-Neklawy committed Sep 11, 2013
2 parents 22cdc84 + ab45abb commit e142262
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/views/rails_admin/main/index.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -159,9 +159,9 @@
-if @abstract_model.to_param.to_s.eql? "item"
="Category: "
%select{:name => 'category_cache'}
-Tag.first_level_categorization_nodes.each do |c|
%option{:value=>c.tagname, selected: params[:category_cache] == c.tagname}
=h c.tagname
-Tag.first_level_categorization_nodes.map(&:tagname).sort.each do |c|
%option{:value=>c, selected: params[:category_cache] == c}
=h c
<br/><br/>


Expand Down

0 comments on commit e142262

Please sign in to comment.