Sha256: 2f37c0b0eeec56ba14b2cb6d484c41060e0281d237ffb5b642f298393fdc064a

Contents?: true

Size: 1.83 KB

Versions: 2

Compression:

Stored size: 1.83 KB

Contents

{I"
class:ETI"ProcessedAsset;FI"logical_path;TI"&blacklight/hierarchy/hierarchy.js;FI"
pathname;TI"s/Users/jkeck/Projects/blacklight/blacklight-hierarchy/app/assets/javascripts/blacklight/hierarchy/hierarchy.js;FI"content_type;TI"application/javascript;TI"
mtime;Tl+5¿÷SI"length;TiÑI"digest;TI"%86317dd592cfd048ef6a2ae148138007;FI"source;TI"ÑBlacklight.onLoad(function(){
  Blacklight.do_hierarchical_facet_expand_contract_behavior();
});

(function($) {
  Blacklight.do_hierarchical_facet_expand_contract_behavior = function() {
    $( Blacklight.do_hierarchical_facet_expand_contract_behavior.selector ).each (
        Blacklight.hierarchical_facet_expand_contract
     );
  }
  Blacklight.do_hierarchical_facet_expand_contract_behavior.selector = 'li.h-node';

  Blacklight.hierarchical_facet_expand_contract = function() {
    var li = $(this);
    
    $('ul', this).each(function() {
      li.addClass('twiddle');
      if($('span.selected', this).length == 0){
        $(this).hide();
      } else {
        li.addClass('twiddle-open');
      }
    });

    // attach the toggle behavior to the li tag
    li.click(function(e){
      if (e.target == this) {
        // toggle the content
        $(this).toggleClass('twiddle-open');
        $(this).children('ul').slideToggle();
      }
    });
  };
})(jQuery);
;TI"dependency_digest;TI"%635af2d50b9c98bcf570240a8d12af76;FI"required_paths;T[I"s/Users/jkeck/Projects/blacklight/blacklight-hierarchy/app/assets/javascripts/blacklight/hierarchy/hierarchy.js;FI"dependency_paths;T[{I"	path;TI"s/Users/jkeck/Projects/blacklight/blacklight-hierarchy/app/assets/javascripts/blacklight/hierarchy/hierarchy.js;FI"
mtime;TI"2014-08-22T15:07:49-07:00;TI"digest;TI"%86317dd592cfd048ef6a2ae148138007;FI"
_version;TI"%397daf779d08329f265b5483f2368f87;F

Version data entries

2 entries across 1 versions & 1 rubygems

Version Path
blacklight-hierarchy-0.1.0 spec/internal/tmp/cache/assets/test/sprockets/6616d72225dab9428ddccc5930a08831
blacklight-hierarchy-0.1.0 spec/internal/tmp/cache/assets/test/sprockets/df45f6613abfb235029866b5a1624150