{:uriI"Ófile://vendor/bundle/ruby/2.2.0/gems/blacklight-6.1.0/app/assets/javascripts/blacklight/facet_load.js?type=application/javascript&pipeline=self&id=ed80408c569fd95b89d445fc74141503ec14a92b46ab8e27afca42007bcb8a63:ET:load_pathI"Jvendor/bundle/ruby/2.2.0/gems/blacklight-6.1.0/app/assets/javascripts;T: filenameI"cvendor/bundle/ruby/2.2.0/gems/blacklight-6.1.0/app/assets/javascripts/blacklight/facet_load.js;T: nameI"blacklight/facet_load;T:logical_pathI""blacklight/facet_load.self.js;T:content_typeI"application/javascript;T: sourceI"È/*global Blacklight */ (function($) { 'use strict'; Blacklight.doResizeFacetLabelsAndCounts = function() { // adjust width of facet columns to fit their contents function longer (a,b){ return b.textContent.length - a.textContent.length; } $('ul.facet-values, ul.pivot-facet').each(function(){ var longest = $(this).find('span.facet-count').sort(longer).first(); var clone = longest.clone() .css('visibility','hidden').css('width', 'auto'); $('body').append(clone); $(this).find('.facet-count').first().width(clone.width()); clone.remove(); }); }; Blacklight.onLoad(function() { Blacklight.doResizeFacetLabelsAndCounts(); }); })(jQuery); ;T: metadata{ :dependencieso:Set: @hash{ I"environment-version;TTI"environment-paths;TTI"rails-env;TTI"Zprocessors:type=application/javascript&file_type=application/javascript&pipeline=self;TTI"qfile-digest://vendor/bundle/ruby/2.2.0/gems/blacklight-6.1.0/app/assets/javascripts/blacklight/facet_load.js;TT: requiredo;;{: stubbedo;;{: linkso;;{: charsetI" utf-8;F: digest"%¹ÖÔò£©‹æe6¤*¨ì‘"{.a¨ ¶Â“N†š–'Þ: lengthiÈ:dependencies_digest"%–n&3¢é0ÍŒ$gßBPõð_£ù^ôÕu