Sha256: 4a0ac98136f42d5ef065eb68e40dd5cabd33c513b8a26da919c98c01c86acc54
Contents?: true
Size: 1.87 KB
Versions: 32
Compression:
Stored size: 1.87 KB
Contents
{I" class:EFI"BundledAsset; FI"logical_path; FI"Cmechanize_store/sb-admin/plugins/metisMenu/jquery.metisMenu.js; TI" pathname; FI"~/Users/wilbert/apps/mechanize_store/app/assets/javascripts/mechanize_store/sb-admin/plugins/metisMenu/jquery.metisMenu.js; TI"content_type; FI"application/javascript; FI" mtime; Fl+˛‘ÓRI"length; FijI"digest; F"%bcfa7276ae8952b713440cc13c257c14I"source; FI"j;(function ($, window, document, undefined) { var pluginName = "metisMenu", defaults = { toggle: true }; function Plugin(element, options) { this.element = element; this.settings = $.extend({}, defaults, options); this._defaults = defaults; this._name = pluginName; this.init(); } Plugin.prototype = { init: function () { var $this = $(this.element), $toggle = this.settings.toggle; $this.find('li.active').has('ul').children('ul').addClass('collapse in'); $this.find('li').not('.active').has('ul').children('ul').addClass('collapse'); $this.find('li').has('ul').children('a').on('click', function (e) { e.preventDefault(); $(this).parent('li').toggleClass('active').children('ul').collapse('toggle'); if ($toggle) { $(this).parent('li').siblings().removeClass('active').children('ul.in').collapse('hide'); } }); } }; $.fn[ pluginName ] = function (options) { return this.each(function () { if (!$.data(this, "plugin_" + pluginName)) { $.data(this, "plugin_" + pluginName, new Plugin(this, options)); } }); }; })(jQuery, window, document); ; TI"required_assets_digest; F"%27a316aed9e272e2ecfb939a593571e4I" _version; F"%9bd74cab6f8cd17bb7b52df6002861bd
Version data entries
32 entries across 16 versions & 1 rubygems