Sha256: 1407a88a3cd128558d4fe7d7dc3fe6e45786c523bf52058e4efb0ff553ca3908
Contents?: true
Size: 765 Bytes
Versions: 2
Compression:
Stored size: 765 Bytes
Contents
$(function(){ $("a#nav_dashboard_link").click(function(e){ e.preventDefault(); $("#content_sidebar").toggleClass('toggle'); $('#content').toggleClass('toggle'); // $(this).toggleClass('active'); }); // Filter page sidebar $('#sidebar_page_search').search('.page_link', function(on) { on.all(function(results) { var size = results ? results.size() : 0 }); on.reset(function() { $('#sidebar_page_search_none').hide(); $('.page_link').show(); }); on.empty(function() { $('#sidebar_page_search_none').show(); $('.page_link').hide(); }); on.results(function(results) { $('#sidebar_page_search_none').hide(); $('.page_link').hide(); results.show(); }); }); });
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
cardboard_cms-0.1.6 | app/assets/javascripts/cardboard/main_sidebar.js |
cardboard_cms-0.1.4 | app/assets/javascripts/cardboard/main_sidebar.js |