aboutsummaryrefslogtreecommitdiff
path: root/.themes/classic
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--.themes/classic/source/javascripts/octopress.js6
1 files changed, 1 insertions, 5 deletions
diff --git a/.themes/classic/source/javascripts/octopress.js b/.themes/classic/source/javascripts/octopress.js
index 218a0a1a..faaf3dbe 100644
--- a/.themes/classic/source/javascripts/octopress.js
+++ b/.themes/classic/source/javascripts/octopress.js
@@ -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');