Sha256: 2886828c8549a24c2953b0335e07793bec46d27cde4dbf72e6ea0d13d1a40d5a

Contents?: true

Size: 2 KB

Versions: 1

Compression:

Stored size: 2 KB

Contents

o: ActiveSupport::Cache::Entry	:@compressedF:@expires_in0:@created_atf1416672640.307961:@value"–{I"
class:ETI"ProcessedAsset;FI"logical_path;TI"locomotive/menu_toggler.js;FI"
pathname;TI"†/Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/vendor/assets/javascripts/locomotive/menu_toggler.js;FI"content_type;TI"application/javascript;TI"
mtime;TI"2014-11-22T16:47:37+01:00;TI"length;TiºI"digest;TI"%72affd1612a14780ec0cf72b770b1014;FI"source;TI"º/**
 * Version 1.0.1
 * Init and deploy childs on menu (admin)
 * Benjamin Athlan - Bewcultures
 * Andrew Bennett - Delorum
 * Didier Lafforgue - NoCoffee
 */

$.fn.toggleMe = function(settings) {

  settings = $.extend({}, settings);

  var toggle = function(event) {
    var toggler     = $(this);
    var children    = toggler.parent().find('> ul.folder');
    var openClass   = toggler.data('open')
    var closedClass = toggler.data('closed')

    children.each(function() {
      var child = $(this);

      if (child.is(':visible')) {
        child.slideUp('fast', function() {
          toggler.removeClass(openClass).addClass(closedClass)
          $.cookie(child.attr('id'), 'none');
        });
      } else {
        child.slideDown('fast', function() {
          toggler.removeClass(closedClass).addClass(openClass)
          $.cookie(child.attr('id'), 'block');
        });
      }
    });
  };

  return $(this).bind('click', toggle);

};
;TI"dependency_digest;TI"%0e1be9ced8fb87bcb086440052a84845;FI"required_paths;T[I"†/Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/vendor/assets/javascripts/locomotive/menu_toggler.js;FI"dependency_paths;T[{I"	path;TI"†/Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/vendor/assets/javascripts/locomotive/menu_toggler.js;FI"
mtime;TI"2014-11-22T16:47:37+01:00;TI"digest;TI"%5d8f5381959477b29446a8f4fdf20a62;FI"
_version;TI"%ffd318ca8b794f42f5029101c2cf5d91;F

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
locomotivecms-search-0.3.6 spec/dummy/tmp/cache/assets/CE7/690/sprockets%2Fdc73630dcff34d94368b8f720d006936