{:uriI"Þfile:///home/arscaud1/.rvm/gems/ruby-2.2.4/gems/blacklight-6.1.0/app/assets/javascripts/blacklight/facet_load.js?type=application/javascript&pipeline=self&id=725e19588a4497fe1f636bcbe487138520c7e7f473b8dd0556dc7bd4321c70a1:ET:load_pathI"U/home/arscaud1/.rvm/gems/ruby-2.2.4/gems/blacklight-6.1.0/app/assets/javascripts;T: filenameI"n/home/arscaud1/.rvm/gems/ruby-2.2.4/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"|file-digest:///home/arscaud1/.rvm/gems/ruby-2.2.4/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"%‘o:O¡•Èð ¹ õÏR}ùñ÷.®Ù ¡Í ‹:idI"E725e19588a4497fe1f636bcbe487138520c7e7f473b8dd0556dc7bd4321c70a1;F: mtimel+#2W