Sha256: c1f0229384fe1e74c9cad1c44a00894d005d13337f5ac007af6afc159f76e194

Contents?: true

Size: 1.86 KB

Versions: 4

Compression:

Stored size: 1.86 KB

Contents

o: ActiveSupport::Cache::Entry	:@compressedF:@expires_in0:@created_atf1364984302.963449:@value"{I"
class:EFI"ProcessedAsset;FI"logical_path;FI"locomotive/menu_toggler.js;TI"
pathname;FI"b/Users/papipo/Projects/locomotive/engine/vendor/assets/javascripts/locomotive/menu_toggler.js;TI"content_type;FI"application/javascript;FI"
mtime;FI"2013-01-18T09:21:51+01:00;FI"length;FiºI"digest;F"%31cc0210a2c3e998d1993e81472a4d29I"source;FI"º/**
 * 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);

};
;FI"dependency_digest;F"%ebac7fc322ad994e1a0fd835d8a4c044I"required_paths;F[I"b/Users/papipo/Projects/locomotive/engine/vendor/assets/javascripts/locomotive/menu_toggler.js;TI"dependency_paths;F[{I"	path;FI"b/Users/papipo/Projects/locomotive/engine/vendor/assets/javascripts/locomotive/menu_toggler.js;TI"
mtime;FI"2013-01-18T09:21:51+01:00;FI"digest;F"%7faff8831a3fbd4d301f4a83aa9a059aI"
_version;F"%6776f581a4329e299531e1d52aa59832

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
locomotivecms-search-0.0.5 spec/dummy/tmp/cache/assets/D19/FC0/sprockets%2F911d62f8392a935a70feece5006947cf
locomotivecms-search-0.0.4 spec/dummy/tmp/cache/assets/D19/FC0/sprockets%2F911d62f8392a935a70feece5006947cf
locomotivecms-search-0.0.3 spec/dummy/tmp/cache/assets/D19/FC0/sprockets%2F911d62f8392a935a70feece5006947cf
locomotivecms-search-0.0.2 spec/dummy/tmp/cache/assets/D19/FC0/sprockets%2F911d62f8392a935a70feece5006947cf