Skip to content
Snippets Groups Projects
Commit e3c529d4 authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

FIX javascript error when using on mobile/smartphone

parent b538f13e
Branches
Tags
No related merge requests found
...@@ -5389,11 +5389,14 @@ function printCommonFooter($zone='private') ...@@ -5389,11 +5389,14 @@ function printCommonFooter($zone='private')
});'."\n"; });'."\n";
print '});'."\n"; print '});'."\n";
print '<!-- Set handler to switch left menu page -->'."\n"; if (empty($conf->dol_use_jmobile))
print 'jQuery(".menuhider").click(function() {'; {
print " $('.side-nav').toggle();"; print '<!-- Set handler to switch left menu page -->'."\n";
if ($conf->theme == 'md') print " $('.login_block').toggle();"; print 'jQuery(".menuhider").click(function() {';
print '});'."\n"; print " $('.side-nav').toggle();";
if ($conf->theme == 'md') print " $('.login_block').toggle();";
print '});'."\n";
}
print '</script>'."\n"; print '</script>'."\n";
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment