Current state
This commit is contained in:
27
public/js/mmenu/dist/js_umd/addons/jquery.mmenu.counters.umd.js
vendored
Normal file
27
public/js/mmenu/dist/js_umd/addons/jquery.mmenu.counters.umd.js
vendored
Normal file
@@ -0,0 +1,27 @@
|
||||
(function ( factory ) {
|
||||
if ( typeof define === 'function' && define.amd )
|
||||
{
|
||||
// AMD. Register as an anonymous module.
|
||||
define( [ 'jquery' ], factory );
|
||||
}
|
||||
else if ( typeof exports === 'object' )
|
||||
{
|
||||
// Node/CommonJS
|
||||
factory( require( 'jquery' ) );
|
||||
}
|
||||
else
|
||||
{
|
||||
// Browser globals
|
||||
factory( jQuery );
|
||||
}
|
||||
}( function ( jQuery ) {
|
||||
|
||||
|
||||
/*
|
||||
* jQuery mmenu counters addon
|
||||
* mmenu.frebsite.nl
|
||||
*
|
||||
* Copyright (c) Fred Heusschen
|
||||
*/
|
||||
!function(t){var n="mmenu",e="counters";t[n].addons[e]={setup:function(){var c=this,o=this.opts[e];this.conf[e],s=t[n].glbl,"boolean"==typeof o&&(o={add:o,update:o}),"object"!=typeof o&&(o={}),o=this.opts[e]=t.extend(!0,{},t[n].defaults[e],o),this.bind("init",function(n){this.__refactorClass(t("em",n),this.conf.classNames[e].counter,"counter")}),o.add&&this.bind("init",function(n){n.each(function(){var n=t(this).data(a.parent);n&&(n.children("em."+i.counter).length||n.prepend(t('<em class="'+i.counter+'" />')))})}),o.update&&this.bind("update",function(){this.$menu.find("."+i.panel).each(function(){var n=t(this),e=n.data(a.parent);if(e){var s=e.children("em."+i.counter);s.length&&(n=n.children("."+i.listview),n.length&&s.html(c.__filterListItems(n.children()).length))}})})},add:function(){i=t[n]._c,a=t[n]._d,c=t[n]._e,i.add("counter search noresultsmsg")},clickAnchor:function(){}},t[n].defaults[e]={add:!1,update:!1},t[n].configuration.classNames[e]={counter:"Counter"};var i,a,c,s}(jQuery);
|
||||
}));
|
||||
Reference in New Issue
Block a user