File tree Expand file tree Collapse file tree 1 file changed +25
-0
lines changed Expand file tree Collapse file tree 1 file changed +25
-0
lines changed Original file line number Diff line number Diff line change @@ -4051,6 +4051,31 @@ <h4 class="text-gray"><i class="linecons-tag" style="margin-right: 7px;" id="UED
40514051    <!-- 锚点平滑移动 --> 
40524052    < script  type ="text/javascript "> 
40534053    $ ( document ) . ready ( function ( )  { 
4054+         $ ( document ) . on ( 'click' ,  '.has-sub' ,  function ( ) { 
4055+             var  _this  =  $ ( this ) 
4056+             if ( ! $ ( this ) . hasClass ( 'expanded' ) )  { 
4057+                setTimeout ( function ( ) { 
4058+                     _this . find ( 'ul' ) . attr ( "style" , "" ) 
4059+                } ,  300 ) ; 
4060+               
4061+             }  else  { 
4062+                 $ ( '.has-sub ul' ) . each ( function ( id , ele ) { 
4063+                     var  _that  =  $ ( this ) 
4064+                     if ( _this . find ( 'ul' ) [ 0 ]  !=  ele )  { 
4065+                         setTimeout ( function ( ) { 
4066+                             _that . attr ( "style" , "" ) 
4067+                         } ,  300 ) ; 
4068+                     } 
4069+                 } ) 
4070+             } 
4071+         } ) 
4072+         $ ( '.user-info-menu .hidden-sm' ) . click ( function ( ) { 
4073+             if ( $ ( '.sidebar-menu' ) . hasClass ( 'collapsed' ) )  { 
4074+                 $ ( '.has-sub.expanded > ul' ) . attr ( "style" , "" ) 
4075+             }  else  { 
4076+                 $ ( '.has-sub.expanded > ul' ) . show ( ) 
4077+             } 
4078+         } ) 
40544079        $ ( "#main-menu li ul li" ) . click ( function ( )  { 
40554080            $ ( this ) . siblings ( 'li' ) . removeClass ( 'active' ) ;  // 删除其他兄弟元素的样式 
40564081            $ ( this ) . addClass ( 'active' ) ;  // 添加当前元素的样式 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments