Skip to content

Commit

Permalink
added correct css decoration to enum fields
Browse files Browse the repository at this point in the history
  • Loading branch information
liorsion committed Aug 29, 2011
1 parent e71eafa commit 618ec27
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/views/rails_admin/main/_form_enumeration.html.haml
Original file line number Diff line number Diff line change
@@ -1,2 +1,7 @@
= field_wrapper_for(form, field) do
= form.select field.method_name, field.enum, {:include_blank => true}, field.html_attributes.merge({ :class => "enum" })
- head_javascript "rails_admin/ra.filtering-select.js"
- head_javascript do
$j(document).ready(function($){
$("##{"#{field.dom_id}"}").filteringSelect({});
})

0 comments on commit 618ec27

Please sign in to comment.