2
0
forked from Wavyzz/dolibarr

Fix css for MD theme

This commit is contained in:
Laurent Destailleur
2019-04-03 14:36:27 +02:00
parent d7510016da
commit c5f5abc67d
3 changed files with 18 additions and 7 deletions

View File

@@ -7180,7 +7180,7 @@ function printCommonFooter($zone = 'private')
print "\n";
print '/* JS CODE TO ENABLE to manage handler to switch left menu page (menuhider) */'."\n";
print 'jQuery(".menuhider").click(function(event) {';
print ' if(!$( "body" ).hasClass( "sidebar-collapse" )){ event.preventDefault(); }'."\n";
print ' if (!$( "body" ).hasClass( "sidebar-collapse" )){ event.preventDefault(); }'."\n";
print ' console.log("We click on .menuhider");'."\n";
print ' $("body").toggleClass("sidebar-collapse")'."\n";
print '});'."\n";