diff --git a/web/skins/classic/includes/functions.php b/web/skins/classic/includes/functions.php index 21c92edda..221c965c2 100644 --- a/web/skins/classic/includes/functions.php +++ b/web/skins/classic/includes/functions.php @@ -165,11 +165,11 @@ if ( $css != 'base' ) } }); jQuery(document).click(function(event) { - var target = jQuery(event.target); - var _mobileMenuOpen = jQuery("#main-header-nav").hasClass("show"); - if (_mobileMenuOpen === true && !target.hasClass("navbar-toggler")) { - jQuery("button.navbar-toggler").click(); - } + var target = jQuery(event.target); + var _mobileMenuOpen = jQuery("#main-header-nav").hasClass("show"); + if (_mobileMenuOpen === true && !target.hasClass("navbar-toggler")) { + jQuery("button.navbar-toggler").click(); + } }); }); var $j = jQuery.noConflict(); @@ -273,13 +273,15 @@ function getNavBarHTML($reload = null) { $filterQuery = $_REQUEST['filter']['query']; } + if ( $reload === null ) ob_start(); + if ( ZM_WEB_NAVBAR_TYPE == "normal" ) { echo getNormalNavBarHTML($reload,$running, $user, $bandwidth_options, $view, $filterQuery, $sortQuery, $limitQuery); } else { echo getCollapsedNavBarHTML($reload,$running, $user, $bandwidth_options, $view, $filterQuery, $sortQuery, $limitQuery); } - if ( $reload === null ) return ob_get_clean(); + return ob_get_clean(); } // @@ -288,7 +290,6 @@ function getNavBarHTML($reload = null) { function getNormalNavBarHTML($reload=null,$running, $user, $bandwidth_options, $view, $filterQuery, $sortQuery, $limitQuery) { if ( $reload === null ) { - ob_start(); $status = runtimeStatus($running); ?> @@ -366,7 +367,7 @@ function getNormalNavBarHTML($reload=null,$running, $user, $bandwidth_options, $ @@ -381,7 +382,6 @@ function getNormalNavBarHTML($reload=null,$running, $user, $bandwidth_options, $ function getCollapsedNavBarHTML($reload=null, $running, $user, $bandwidth_options, $view, $filterQuery, $sortQuery, $limitQuery) { if ( $reload === null ) { - ob_start(); $status = runtimeStatus($running); ?> @@ -422,6 +422,7 @@ function getCollapsedNavBarHTML($reload=null, $running, $user, $bandwidth_option @@ -436,7 +437,7 @@ function getCollapsedNavBarHTML($reload=null, $running, $user, $bandwidth_option -