Commit 66e4fbc243f52fa534aab4320b6366a4779c7027
1 parent
eed9aedd
Exists in
master
and in
3 other branches
fix javascript
Showing
1 changed file
with
3 additions
and
6 deletions
Show diff stats
theme.js
1 | 1 | (function($) { |
2 | 2 | // Run code |
3 | 3 | |
4 | - $('.btn_control .logged-in #homepage-link').on('click', function(event){ | |
5 | - event.preventDefault(); | |
6 | - }); | |
7 | - | |
8 | - $(".btn_control .logged-in #homepage-link").click(function(){ | |
9 | - $("#wrap-0").toggleClass("menu"); | |
4 | + $('.btn_control .logged-in #homepage-link').live('click', function(e){ | |
5 | + e.preventDefault(); | |
6 | + $("#wrap-0").toggleClass("menu"); | |
10 | 7 | $("#wrap-1").toggleClass("menu"); |
11 | 8 | $("#theme-footer").toggleClass("menu"); |
12 | 9 | }); | ... | ... |