{I" class:ETI"BundledAsset;FI"logical_path;TI"jquery.adaptivemenu.js;FI" pathname;TI"m/usr/local/rvm/gems/ruby-2.1.2/gems/spree_backend-2.2.4/vendor/assets/javascripts/jquery.adaptivemenu.js;FI"content_type;TI"application/javascript;TI" mtime;Tl+TI" length;TidI" digest;TI"%58f568b3f92add192fb84f2841db3d2f;FI" source;TI"djQuery.fn.AdaptiveMenu = function(options){ var options = jQuery.extend({ text: "More...", accuracy:70, 'class':null, 'classLinckMore':null },options); var menu = this; var li = $(menu).find("li"); // li.css({"display":"inline","white-space":"nowrap"}); var width = 0; var widthLi = []; $.each( li , function(i, l){ width += $(l).width(); widthLi.push( width ); }); var buildingMenu = function(windowWidth){ var windowWidth = windowWidth - options.accuracy; for(var i = 0; i windowWidth ) $( li[i] ).hide(); else $( li[i] ).show(); } $(menu).find('#more').remove(); var hideLi = $(li).filter(':not(:visible)'); var lastLi = $(li).filter(':visible').last(); if ( hideLi.length > 0 ){ var more = $("
  • ") .css({"display":"inline-block","white-space":"nowrap"}) .addClass(options.classLinckMore) .attr({"id":"more"}) .html(options.text) .click(function(){$(this).find('li').toggle()}); var ul = $("