From f2b7e0eecc88e7d65e51feca6e5a54e6da8dbdc1 Mon Sep 17 00:00:00 2001 From: Alexandr Date: Sun, 4 Oct 2015 20:04:58 +0300 Subject: [PATCH] Update app.js Fix bug with treeview menu when sidebar is collapsed and you clicked to menu which already visible. --- dist/js/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dist/js/app.js b/dist/js/app.js index 36d187005..087d10ea6 100644 --- a/dist/js/app.js +++ b/dist/js/app.js @@ -394,7 +394,7 @@ function _init() { var checkElement = $this.next(); //Check if the next element is a menu and is visible - if ((checkElement.is('.treeview-menu')) && (checkElement.is(':visible'))) { + if ((checkElement.is('.treeview-menu')) && (checkElement.is(':visible')) && (!$('body').hasClass('sidebar-collapse'))) { //Close the menu checkElement.slideUp(animationSpeed, function () { checkElement.removeClass('menu-open');