Merge pull request #717 from zviryatko/patch-1

Fix animation bug with collapsed sidebar and treeview menu.
pull/779/head
Abdullah Almsaeed 2015-10-22 12:37:06 -04:00
commit 1c448a3afa
1 changed files with 1 additions and 1 deletions

2
dist/js/app.js vendored
View File

@ -394,7 +394,7 @@ function _init() {
var checkElement = $this.next(); var checkElement = $this.next();
//Check if the next element is a menu and is visible //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 //Close the menu
checkElement.slideUp(animationSpeed, function () { checkElement.slideUp(animationSpeed, function () {
checkElement.removeClass('menu-open'); checkElement.removeClass('menu-open');