o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1366207004.396966: @value"‚ {I" class:ETI"ProcessedAsset;FI"logical_path;TI"(blacklight/facet_expand_contract.js;FI" pathname;TI"/Users/jfriesen/.rvm/gems/ruby-2.0.0-p0@curate/gems/blacklight-4.0.1/app/assets/javascripts/blacklight/facet_expand_contract.js;FI"content_type;TI"application/javascript;TI" mtime;TI"2013-04-08T11:16:57-04:00;TI" length;Ti[I" digest;TI"%b0d3937d16773516e756d99aa2cb0025;FI" source;TI"[(function($) { Blacklight.do_facet_expand_contract_behavior = function() { $( Blacklight.do_facet_expand_contract_behavior.selector ).each ( Blacklight.facet_expand_contract ); } Blacklight.do_facet_expand_contract_behavior.selector = '#facets h5'; /* Behavior that makes facet limit headings in sidebar expand/contract their contents. This is kind of fragile code targeted specifically at how we currently render facet HTML, which is why I put it in a function on Blacklight instead of in a jquery plugin. Perhaps in the future this could/should be expanded to a general purpose jquery plugin -- or we should just use one of the existing ones for expand/contract? */ Blacklight.facet_expand_contract = function() { $(this).next("ul, div").each(function(){ var f_content = $(this); $(f_content).prev('h5').addClass('twiddle'); // find all f_content's that don't have any span descendants with a class of "selected" if($('span.selected', f_content).length == 0){ // hide it f_content.hide(); } else { $(this).prev('h5').addClass('twiddle-open'); } // attach the toggle behavior to the h5 tag $('h5', f_content.parent()).click(function(){ // toggle the content $(this).toggleClass('twiddle-open'); $(f_content).slideToggle(); }); }); }; $(document).ready(function() { Blacklight.do_facet_expand_contract_behavior(); }); })(jQuery); ;TI"dependency_digest;TI"%f278ac1b28784eb0339d33b01be96412;FI"required_paths;T[I"s/Users/jfriesen/.rvm/gems/ruby-2.0.0-p0@curate/gems/blacklight-4.0.1/app/assets/javascripts/blacklight/core.js;FI"/Users/jfriesen/.rvm/gems/ruby-2.0.0-p0@curate/gems/blacklight-4.0.1/app/assets/javascripts/blacklight/facet_expand_contract.js;FI"dependency_paths;T[{I" path;TI"/Users/jfriesen/.rvm/gems/ruby-2.0.0-p0@curate/gems/blacklight-4.0.1/app/assets/javascripts/blacklight/facet_expand_contract.js;FI" mtime;TI"2013-04-08T11:16:57-04:00;TI" digest;TI"%d472ebbba3204d51bedf6e768c3e39eb;F{I" path;TI"s/Users/jfriesen/.rvm/gems/ruby-2.0.0-p0@curate/gems/blacklight-4.0.1/app/assets/javascripts/blacklight/core.js;FI" mtime;TI"2013-04-08T11:16:57-04:00;TI" digest;TI"%45b75fb40af168e0dcbfbb7b97252e3d;FI" _version;TI"%ffd318ca8b794f42f5029101c2cf5d91;F