From d512e5440740357d8b16f4d7a1054177ef4caa4f Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Fri, 15 Mar 2019 20:10:39 +0100 Subject: [PATCH] Restore toggle of login_block because it was no more visible --- htdocs/core/lib/functions.lib.php | 3 ++- htdocs/main.inc.php | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/htdocs/core/lib/functions.lib.php b/htdocs/core/lib/functions.lib.php index f36901512f1..ded5f2376c8 100644 --- a/htdocs/core/lib/functions.lib.php +++ b/htdocs/core/lib/functions.lib.php @@ -7194,7 +7194,8 @@ function printCommonFooter($zone = 'private') print 'jQuery(".menuhider").click(function(event) {'; print ' if(!$( "body" ).hasClass( "sidebar-collapse" )){ event.preventDefault(); }'."\n"; print ' console.log("We click on .menuhider");'."\n"; - print " $('body').toggleClass('sidebar-collapse')\n"; + print ' $("body").toggleClass("sidebar-collapse")'."\n"; + print ' $(".login_block").toggle()'."\n"; print '});'."\n"; } diff --git a/htdocs/main.inc.php b/htdocs/main.inc.php index 6fbad81780a..a473f9a5abd 100644 --- a/htdocs/main.inc.php +++ b/htdocs/main.inc.php @@ -1099,7 +1099,7 @@ if (! function_exists("llxHeader")) if ($conf->browser->layout == 'phone'){ $morecssonbody.= ' sidebar-collapse'; } - + print '' . "\n"; // top menu and left menu area @@ -1987,7 +1987,7 @@ function printSearchForm($urlaction, $urlobject, $title, $htmlmorecss, $htmlinpu global $conf,$langs,$user; $ret=''; - $ret.='
'; + $ret.=''; $ret.=''; $ret.=''; $ret.='';