diff --git a/htdocs/admin/menus/other.php b/htdocs/admin/menus/other.php index f9b772558c6..1dd37b580e2 100644 --- a/htdocs/admin/menus/other.php +++ b/htdocs/admin/menus/other.php @@ -50,6 +50,19 @@ else if ($_GET["action"] == 'disable_hidemenu') exit; } +if ($_GET["action"] == 'activate_layoutmenu') +{ + dolibarr_set_const($db, "MAIN_MENU_USE_JQUERY_LAYOUT", '1','chaine',0,'',$conf->entity); + Header("Location: ".$_SERVER["PHP_SELF"]); + exit; +} +else if ($_GET["action"] == 'disable_layoutmenu') +{ + dolibarr_del_const($db, "MAIN_MENU_USE_JQUERY_LAYOUT",$conf->entity); + Header("Location: ".$_SERVER["PHP_SELF"]); + exit; +} + /* * View @@ -105,7 +118,22 @@ if($conf->global->MAIN_MENU_HIDE_UNAUTHORIZED == 1) print ''.img_picto($langs->trans("Enabled"),'on').''; } print ""; +print ''; +// hide unauthorized menu +$var=!$var; +print "