Sha256: d3c28412892257427d1dc5ac83d8e9cca4f641e748f54ab3e18439360d6d96c1
Contents?: true
Size: 1.84 KB
Versions: 32
Compression:
Stored size: 1.84 KB
Contents
{I" class:EFI"BundledAsset; FI"logical_path; FI"9store/sb-admin/plugins/metisMenu/jquery.metisMenu.js; TI" pathname; FI"j/Users/wilbert/apps/store/app/assets/javascripts/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