File tree 1 file changed +8
-4
lines changed
1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -36,16 +36,20 @@ $(document).ready(function() {
36
36
$source : function ( $el ) {
37
37
return $el . find ( ' > li > a' ) ;
38
38
} ,
39
+ $target : function ( $source ) {
40
+ return $source . next ( 'ul' ) ;
41
+ } ,
39
42
onEvents : function ( $source , $target , event ) {
40
- $block_1 . find ( '.submenu-opened' ) . removeClass ( 'submenu-opened' ) ;
43
+ $block_2 . find ( '.submenu-opened' ) . removeClass ( 'submenu-opened' ) ;
41
44
$target . parent ( 'li' ) . addClass ( 'submenu-opened' ) ;
42
45
} ,
43
- onTimeout : function ( $source , $target , event ) {
44
- // console.log( $target );
45
- $block_1 . find ( '.submenu-opened' ) . removeClass ( 'submenu-opened' ) ;
46
+ onTimeout : function ( $source , $target , event ) {
47
+ console . log ( $target ) ;
48
+ $block_2 . find ( '.submenu-opened' ) . removeClass ( 'submenu-opened' ) ;
46
49
}
47
50
} ) ;
48
51
52
+
49
53
var $block_3 = $ ( '#sample-megadrop' ) ;
50
54
$block_3 . autohide_timeout ( {
51
55
events : 'mouseenter' , // default is click
You can’t perform that action at this time.
0 commit comments