Merge pull request #1586 from simonewebdesign/master

Refactoring addSidebarToggler()
main
Parker Moore 11 years ago
commit 695fe922a9

@ -17,11 +17,7 @@ function addSidebarToggler() {
$('#content').append('<span class="toggle-sidebar"></span>');
$('.toggle-sidebar').bind('click', function(e) {
e.preventDefault();
if ($('body').hasClass('collapse-sidebar')) {
$('body').removeClass('collapse-sidebar');
} else {
$('body').addClass('collapse-sidebar');
}
$('body').toggleClass('collapse-sidebar');
});
}
var sections = $('aside.sidebar > section');

Loading…
Cancel
Save