Sha256: e32aeeabf6d46e9008135698965cfc97522c3331d60df2888c921a39e921174e

Contents?: true

Size: 1.28 KB

Versions: 1

Compression:

Stored size: 1.28 KB

Contents

o: ActiveSupport::Cache::Entry	:@compressedF:@expires_in0:@created_atf1364311665.486078:@value"¶{I"
class:EFI"BundledAsset;FI"logical_path;FI"refinery/tree.js;TI"
pathname;FI"ƒ/Users/johanfrolich/.rvm/gems/ruby-1.9.3-p327@refinerycms-menus/gems/refinerycms-core-2.0.9/app/assets/javascripts/refinery/tree.js;TI"content_type;FI"application/javascript;FI"
mtime;FI"2013-02-04T15:34:04+01:00;FI"length;Fi¬I"digest;F"%636d62c514a4d6c2a1730229c9bf2168I"source;FI"¬$(function() {
  $('.tree .toggle').live('click', function(e) { 
    e.preventDefault(); 
    var $li   = $(this).parents('li:first');
    var $icon = $li.find('.icon.toggle');
    var $nested = $li.find('.nested');

    if ($icon.hasClass('expanded')) {
      $icon.removeClass('expanded');
      $nested.slideUp(); 
    }
    else {
      var contentUrl = $nested.attr('data-ajax-content');
      $li.addClass('loading');
      
      $nested.load(contentUrl, function() {
        $nested.find('li:last').addClass('branch_end');
        $icon.addClass('expanded');
        init_tooltips();
        $nested.slideDown(); 
        $li.removeClass('loading');
      });
    }
  });
});
;FI"required_assets_digest;F"%905624518f6b340937e76b97d8df4021I"
_version;F"%ffd318ca8b794f42f5029101c2cf5d91

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
refinerycms-menus-2.0.6 spec/dummy/tmp/cache/assets/D4C/F10/sprockets%2Fae96a38212cf9a569b2be23bc9f88645