Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fixed javascript bug while resizing the window

  • Loading branch information...
commit 6213469ba7a247585ac2ede0f16fc570e0e2b3e3 1 parent a7809f7
@peponi authored
Showing with 12 additions and 6 deletions.
  1. +12 −6 script/app.js
View
18 script/app.js
@@ -22,11 +22,17 @@ $(document).ready(function()
$(".bs-docs-sidebar ").toggle();
});
- if($(window).width() <= 640)
- {
- $(".bs-docs-sidenav li a").click(function()
+ $(window).resize(function() {
+
+ if($(window).width() <= 640)
{
- $(".bs-docs-sidebar ").fadeOut();
- });
- }
+ $(".bs-docs-sidenav li a").click(function()
+ {
+ $(".bs-docs-sidebar ").fadeOut();
+ });
+ }
+
+ });
+
+
});
Please sign in to comment.
Something went wrong with that request. Please try again.