mirror of https://github.com/ColorlibHQ/AdminLTE
				
				
				
			Update app.js
Fix bug with treeview menu when sidebar is collapsed and you clicked to menu which already visible.pull/717/head
							parent
							
								
									4cd707a49e
								
							
						
					
					
						commit
						f2b7e0eecc
					
				| 
						 | 
				
			
			@ -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');
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue