Skip to content

Commit

Permalink
Merge pull request #1580 from DarthMax/issue_1241_fix
Browse files Browse the repository at this point in the history
Issue 1241
  • Loading branch information
bbenezech committed Apr 3, 2013
2 parents 5653ba2 + 85fe0a4 commit bb64c94
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
7 changes: 7 additions & 0 deletions app/assets/javascripts/rails_admin/ui.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -68,3 +68,10 @@ $(document).on 'rails_admin.dom_ready', ->
$(this).siblings('.control-group').hide()

$(".table").tooltip selector: "th[rel=tooltip]"

$(document).on 'click', '#fields_to_export label input#check_all', () ->
elems = $('#fields_to_export label input')
if $('#fields_to_export label input#check_all').is ':checked'
$(elems).prop('checked', true)
else
$(elems).prop('checked',false)
7 changes: 6 additions & 1 deletion app/views/rails_admin/main/export.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,12 @@
= form_tag export_path(params.merge(:all => true)), :method => 'post', :class => 'form-horizontal denser' do

%input{:name => "send_data", :type => "hidden", :value => "true"}/
%fieldset
%fieldset{:id => 'fields_to_export'}
%div.control-group
%div.controls
%label.checkbox{:for => 'check_all'}
= 'Select All Fields'
= check_box_tag 'all', 'all', true, { :id => 'check_all' }
%legend
%i.icon-chevron-down
= t('admin.export.select')
Expand Down

0 comments on commit bb64c94

Please sign in to comment.