{I" class:ETI"ProcessedAsset;FI"logical_path;TI"rails_admin/ui.js;FI" pathname;TI"p/Users/jirikolarik/.rvm/gems/ruby-2.1.1/gems/rails_admin-0.6.1/app/assets/javascripts/rails_admin/ui.coffee;FI"content_type;TI"application/javascript;TI" mtime;Tl+–SI" length;Ti)I" digest;TI"%33ba4d38e7c33a4709ceecbe35719253;FI" source;TI")(function() { var $; $ = jQuery; $(document).on("click", "#list input.toggle", function() { return $("#list [name='bulk_ids[]']").prop("checked", $(this).is(":checked")); }); $(document).on('click', '.pjax', function(event) { if (event.which > 1 || event.metaKey || event.ctrlKey) { } else if ($.support.pjax) { event.preventDefault(); return $.pjax({ container: $(this).data('pjax-container') || '[data-pjax-container]', url: $(this).data('href') || $(this).attr('href'), timeout: 2000 }); } else if ($(this).data('href')) { return window.location = $(this).data('href'); } }); $(document).on('submit', '.pjax-form', function(event) { if ($.support.pjax) { event.preventDefault(); return $.pjax({ container: $(this).data('pjax-container') || '[data-pjax-container]', url: this.action + (this.action.indexOf('?') !== -1 ? '&' : '?') + $(this).serialize(), timeout: 2000 }); } }); $(document).on('pjax:start', function() { return $('#loading').show(); }).on('pjax:end', function() { return $('#loading').hide(); }); $(document).on('click', '[data-target]', function() { if (!$(this).hasClass('disabled')) { if ($(this).has('i.icon-chevron-down').length) { $(this).removeClass('active').children('i').toggleClass('icon-chevron-down icon-chevron-right'); return $($(this).data('target')).select(':visible').hide('slow'); } else { if ($(this).has('i.icon-chevron-right').length) { $(this).addClass('active').children('i').toggleClass('icon-chevron-down icon-chevron-right'); return $($(this).data('target')).select(':hidden').show('slow'); } } } }); $(document).on('click', '.form-horizontal legend', function() { if ($(this).has('i.icon-chevron-down').length) { $(this).siblings('.control-group:visible').hide('slow'); return $(this).children('i').toggleClass('icon-chevron-down icon-chevron-right'); } else { if ($(this).has('i.icon-chevron-right').length) { $(this).siblings('.control-group:hidden').show('slow'); return $(this).children('i').toggleClass('icon-chevron-down icon-chevron-right'); } } }); $(document).on('click', 'form .tab-content .tab-pane a.remove_nested_one_fields', function() { return $(this).children('input[type="hidden"]').val($(this).hasClass('active')).siblings('i').toggleClass('icon-check icon-trash'); }); $(document).ready(function() { return $(document).trigger('rails_admin.dom_ready'); }); $(document).on('pjax:end', function() { return $(document).trigger('rails_admin.dom_ready'); }); $(document).on('rails_admin.dom_ready', function() { $('.animate-width-to').each(function() { var length, width; length = $(this).data("animate-length"); width = $(this).data("animate-width-to"); return $(this).animate({ width: width }, length, 'easeOutQuad'); }); $('.form-horizontal legend').has('i.icon-chevron-right').each(function() { return $(this).siblings('.control-group').hide(); }); return $(".table").tooltip({ selector: "th[rel=tooltip]" }); }); $(document).on('click', '#fields_to_export label input#check_all', function() { var elems; elems = $('#fields_to_export label input'); if ($('#fields_to_export label input#check_all').is(':checked')) { return $(elems).prop('checked', true); } else { return $(elems).prop('checked', false); } }); $(document).on('pjax:popstate', function() { $(document).one('pjax:end', function(event) { $(event.target).find('script').each(function() { $.globalEval(this.text || this.textContent || this.innerHTML || ''); }); }); }); }).call(this); ;TI"dependency_digest;TI"%9b1e66cad20239891a8d14e3886eb56f;FI"required_paths;T[I"p/Users/jirikolarik/.rvm/gems/ruby-2.1.1/gems/rails_admin-0.6.1/app/assets/javascripts/rails_admin/ui.coffee;FI"dependency_paths;T[{I" path;TI"p/Users/jirikolarik/.rvm/gems/ruby-2.1.1/gems/rails_admin-0.6.1/app/assets/javascripts/rails_admin/ui.coffee;FI" mtime;TI"2014-03-03T22:18:36+01:00;TI" digest;TI"%980449b1b728e870f72ee55248c0a10b;FI" _version;TI"%1005ed9f20e25fb0a0599a7017dd0e6b;F