o: ActiveSupport::Cache::Entry :@expires_in0:@compressedF: @value"A{"content_type"application/javascript" class"ProcessedAsset"dependency_digest"%f5c15bbced8a295d7d855acb789ec138" mtime"2012-04-28T20:21:50-05:00" _version"%9f3b95dd7ea3030dc35985c0a8020862"dependency_paths[{" mtime"2012-04-28T20:21:50-05:00" digest"%0aaa79417f87d67c7df8753275c19a51" path"S/Users/njones/Code/rails_admin/app/assets/javascripts/rails_admin/ui.js.coffee" digest"%b056332e1592cd7976d5a081707baf90"required_paths["S/Users/njones/Code/rails_admin/app/assets/javascripts/rails_admin/ui.js.coffee" pathname"S/Users/njones/Code/rails_admin/app/assets/javascripts/rails_admin/ui.js.coffee"logical_path"rails_admin/ui.js" lengthi¦ " source"¦ (function() { var $; $ = jQuery; $("#list input.toggle").live("click", function() { return $("#list [name='bulk_ids[]']").attr("checked", $(this).is(":checked")); }); $('.pjax').live('click', function(event) { 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'); } }); $('.pjax-form').live('submit', 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(); }); $('[data-target]').live('click', 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'); } } } }); $('.form-horizontal legend').live('click', 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).ready(function() { return $(document).trigger('rails_admin.dom_ready'); }); $(document).live('pjax:end', function() { return $(document).trigger('rails_admin.dom_ready'); }); $(document).live('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 $('[rel=tooltip]').tooltip({ delay: { show: 200, hide: 500 } }); }); }).call(this); :@created_atf1335716316.6704099çÿ