{:uriI"file:///home/arscaud1/.rvm/gems/ruby-2.2.4/gems/blacklight-6.16.0/app/assets/javascripts/blacklight/facet_load.js?type=application/javascript&pipeline=self&id=75d6592269815b8f254710917009137bf634d0a29dfcb1d8e65a1bf95c4de791:ET:load_pathI"V/home/arscaud1/.rvm/gems/ruby-2.2.4/gems/blacklight-6.16.0/app/assets/javascripts;T: filenameI"o/home/arscaud1/.rvm/gems/ruby-2.2.4/gems/blacklight-6.16.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"}file-digest:///home/arscaud1/.rvm/gems/ruby-2.2.4/gems/blacklight-6.16.0/app/assets/javascripts/blacklight/facet_load.js;TT: requiredo;;{: stubbedo;;{: linkso;;{: charsetI" utf-8;F: digest"%򣩋e6*"{.a“N': lengthi:dependencies_digest"%#by#e-!R:idI"E75d6592269815b8f254710917009137bf634d0a29dfcb1d8e65a1bf95c4de791;F: mtimel+[