diff --git a/e107_admin/header.php b/e107_admin/header.php index 687a34bef..a5c5efc44 100644 --- a/e107_admin/header.php +++ b/e107_admin/header.php @@ -445,6 +445,12 @@ if (defined('THEME_ONLOAD')) $js_body_onload[] = THEME_ONLOAD; $body_onload=''; if (count($js_body_onload)) $body_onload = " onload=\"".implode(" ",$js_body_onload)."\""; + +if(deftrue('e_MENUMANAGER_ACTIVE')) +{ + $body_onload .= " id=\"layout-".e107::getForm()->name2id(THEME_LAYOUT)."\" "; +} + // // J: Send end of
and start of // diff --git a/e107_handlers/menumanager_class.php b/e107_handlers/menumanager_class.php index c403a14e6..320a5b5c7 100644 --- a/e107_handlers/menumanager_class.php +++ b/e107_handlers/menumanager_class.php @@ -206,7 +206,7 @@ class e_menuManager { // $cnt = $sql->select("menus", "*", "menu_location > 0 AND menu_layout = '$curLayout' ORDER BY menu_name "); // calculate height to remove vertical scroll-bar. // $text = ""; - $text = ""; + $text = ""; return $text; }