FIX javascript error when using on mobile/smartphone
This commit is contained in:
parent
b538f13efb
commit
e3c529d483
@ -5389,11 +5389,14 @@ function printCommonFooter($zone='private')
|
||||
});'."\n";
|
||||
print '});'."\n";
|
||||
|
||||
print '<!-- Set handler to switch left menu page -->'."\n";
|
||||
print 'jQuery(".menuhider").click(function() {';
|
||||
print " $('.side-nav').toggle();";
|
||||
if ($conf->theme == 'md') print " $('.login_block').toggle();";
|
||||
print '});'."\n";
|
||||
if (empty($conf->dol_use_jmobile))
|
||||
{
|
||||
print '<!-- Set handler to switch left menu page -->'."\n";
|
||||
print 'jQuery(".menuhider").click(function() {';
|
||||
print " $('.side-nav').toggle();";
|
||||
if ($conf->theme == 'md') print " $('.login_block').toggle();";
|
||||
print '});'."\n";
|
||||
}
|
||||
|
||||
print '</script>'."\n";
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user