Skip to content

Instantly share code, notes, and snippets.

@chadsten
Created September 3, 2013 20:25
Show Gist options
  • Select an option

  • Save chadsten/6429067 to your computer and use it in GitHub Desktop.

Select an option

Save chadsten/6429067 to your computer and use it in GitHub Desktop.
//
// refine search sidebar on mobile
//
if(checkMediaMode('mobile')){
if ($("#filter-button").length) {
$('#side').tinyscrollbar();
$('#filter-button').click(function() {
if (!$('body').hasClass('side-show')) {
$('body').addClass('side-show');
} else {
$('body').removeClass('side-show');
}
});
$('.section-inventory-list #content').on('click', '#filter-button', function() {
$('body').removeClass('side-show');
});
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment