{I" class:EFI"BundledAsset;FI"logical_path;FI"&active_admin/lib/batch_actions.js;TI" pathname;FI"¢/Users/benoit/.rbenv/versions/1.9.3-p551/lib/ruby/gems/1.9.1/bundler/gems/activeadmin-7d968c2898cb/app/assets/javascripts/active_admin/lib/batch_actions.js.coffee;TI"content_type;FI"application/javascript;FI" mtime;Fl+°àåTI" length;Fi’I" digest;F"%7d14e7b8bab9a0f4cafe4481f45ae226I" source;FI"’(function() { $(function() { $('.batch_actions_selector li a').click(function(e) { var message; e.stopPropagation(); e.preventDefault(); if (message = $(this).data('confirm')) { return ActiveAdmin.modal_dialog(message, $(this).data('inputs'), (function(_this) { return function(inputs) { return $(_this).trigger('confirm:complete', inputs); }; })(this)); } else { return $(this).trigger('confirm:complete'); } }); $('.batch_actions_selector li a').on('confirm:complete', function(e, inputs) { var val; if (val = JSON.stringify(inputs)) { $('#batch_action_inputs').val(val); } else { $('#batch_action_inputs').attr('disabled', 'disabled'); } $('#batch_action').val($(this).data('action')); return $('#collection_selection').submit(); }); if ($(".batch_actions_selector").length && $(":checkbox.toggle_all").length) { if ($(".paginated_collection table.index_table").length) { $(".paginated_collection table.index_table").tableCheckboxToggler(); } else { $(".paginated_collection").checkboxToggler(); } return $(document).on('change', '.paginated_collection :checkbox', function() { if ($(".paginated_collection :checkbox:checked").length) { return $(".batch_actions_selector").each(function() { return $(this).aaDropdownMenu("enable"); }); } else { return $(".batch_actions_selector").each(function() { return $(this).aaDropdownMenu("disable"); }); } }); } }); }).call(this); ;TI"required_assets_digest;F"%0ac6189510c3ff8dbd93dc97859ae64aI" _version;F"%a805bf9eb4f9751b8ea0c520b2a29a36