mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-06 09:38:23 +01:00
Merge pull request #10780 from atm-john/theme_sidebarr_toggle
NEW/FIX Theme sidebarr toggle
This commit is contained in:
@@ -7191,11 +7191,10 @@ 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() {';
|
||||
print 'jQuery(".menuhider").click(function(event) {';
|
||||
print ' if(!$( "body" ).hasClass( "sidebar-collapse" )){ event.preventDefault(); }'."\n";
|
||||
print ' console.log("We click on .menuhider");'."\n";
|
||||
//print " $('.side-nav').animate({width:'toggle'},200);\n"; // OK with eldy theme but not with md
|
||||
print " $('.side-nav').toggle()\n";
|
||||
print " $('.login_block').toggle()\n";
|
||||
print " $('body').toggleClass('sidebar-collapse')\n";
|
||||
print '});'."\n";
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user