Permalink
Browse files

fixed missing sidebar after window resizing

  • Loading branch information...
1 parent 4991281 commit d808cd057c92a86cdfec9f697cfa02b6887da1bf @peponi committed Jan 26, 2013
Showing with 7 additions and 2 deletions.
  1. +7 −2 script/app.js
View
@@ -22,15 +22,20 @@ $(document).ready(function()
$(".bs-docs-sidebar ").toggle();
});
- $(window).resize(function() {
+ $(window).resize(function()
+ {
- if($(window).width() <= 640)
+ if($(window).width() <= 640)
{
$(".bs-docs-sidenav li a").click(function()
{
$(".bs-docs-sidebar ").fadeOut();
});
}
+ if($(window).width() > 640)
+ {
+ $(".bs-docs-sidebar ").fadeIn();
+ }
});

0 comments on commit d808cd0

Please sign in to comment.