fixes NodeBB/NodeBB#4483 (#277)

main
pichalite 9 years ago committed by Julian Lam
parent 6e3c87265b
commit 5d249ee913

@ -3,13 +3,13 @@
/*globals ajaxify, config, utils, app, socket, Slideout, NProgress*/ /*globals ajaxify, config, utils, app, socket, Slideout, NProgress*/
$(document).ready(function() { $(document).ready(function() {
var env = utils.findBootstrapEnvironment();
setupNProgress(); setupNProgress();
setupTaskbar(); setupTaskbar();
setupEditedByIcon(); setupEditedByIcon();
setupMobileMenu(); setupMobileMenu();
var env = utils.findBootstrapEnvironment();
if (env === 'xs' || env ==='sm') { if (env === 'xs' || env ==='sm') {
$(".navbar-fixed-top").autoHidingNavbar({ $(".navbar-fixed-top").autoHidingNavbar({
showOnBottom: false showOnBottom: false
@ -124,6 +124,10 @@ $(document).ready(function() {
'tolerance': 70, 'tolerance': 70,
'side': 'right' 'side': 'right'
}); });
if (env !== 'xs') {
slideout.disableTouch();
}
$('#mobile-menu').on('click', function() { $('#mobile-menu').on('click', function() {
slideout.toggle(); slideout.toggle();

Loading…
Cancel
Save