Skip to content

Commit 6548b10

Browse files
author
cssninja
authored
Merge pull request #12 from StefMa/patch-2
Fix click on sidebar link
2 parents 814b272 + a22bf1b commit 6548b10

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

js/fresh.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ $(document).ready(function () {
3333

3434
//Sidebar menu
3535
if ($('.sidebar').length) {
36-
$(".sidebar-menu > li.have-children a").on("click", function (i) {
36+
$(".sidebar-menu > li.have-children > a").on("click", function (i) {
3737
i.preventDefault();
3838
if (!$(this).parent().hasClass("active")) {
3939
$(".sidebar-menu li ul").slideUp();
@@ -150,4 +150,4 @@ $(document).ready(function () {
150150
}
151151
}
152152
});
153-
})
153+
})

0 commit comments

Comments
 (0)