Skip to content

Commit 26a4afa

Browse files
committed
Remove style attribute from mainNav after slide up, fixes BonsaiDen#99
After showing/hiding the menu in mobile mode, switching to fullscreen leaves the mainNav hidden because jquery set style="display: none;" at the end of the slideUp() animation. This clears the style so it displays again.
1 parent 1f91a84 commit 26a4afa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

site/javascript/garden.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ Page.prototype = {
184184

185185
$('#nav_main').click(function(){
186186
if(that.window.width() < 1000)
187-
mainNav.slideUp(300);
187+
mainNav.slideUp(300, function() {this.removeAttr('style');});
188188
});
189189
},
190190

0 commit comments

Comments
 (0)