File tree Expand file tree Collapse file tree 1 file changed +11
-10
lines changed Expand file tree Collapse file tree 1 file changed +11
-10
lines changed Original file line number Diff line number Diff line change 1
-
2
1
var storedata = store ( "maindata" ) ;
3
2
4
3
@@ -21,24 +20,26 @@ if(storedata&&storedata.length>0){
21
20
}
22
21
23
22
// 屏蔽右键菜单 动画
24
- $ ( 'body' ) . on ( 'click' , function ( ) {
25
- $ ( '#iconList li a' ) . removeClass ( 'animated shakeSlow' ) ;
26
- // $('#iconList li a').addClass('animated flipOutX');
27
- $ ( '#iconList li div.close' ) . css ( {
28
- "visibility" : 'hidden'
29
- } ) ;
23
+ $ ( 'body' ) . on ( 'click' , function ( evn , e ) {
24
+ var $elm = $ ( evn . toElement ) . parent ( ) ;
25
+ if ( evn . toElement . tagName === 'DIV' && evn . toElement . className === 'close' && $elm . attr ( 'tagName' ) === 'LI' ) {
26
+
27
+ } else {
28
+ $ ( '#iconList li a' ) . removeClass ( 'animated shakeSlow' ) ;
29
+ $ ( '#iconList li div.close' ) . css ( {
30
+ "visibility" : 'hidden'
31
+ } ) ;
32
+ }
30
33
} ) . on ( 'contextmenu' , function ( ) {
31
34
$ ( '#iconList li a' ) . addClass ( 'animated shakeSlow' ) ;
32
35
$ ( '#iconList li div.close' ) . css ( {
33
36
"visibility" : 'inherit'
34
37
} ) . on ( 'click' , function ( ) {
35
-
36
38
var url = $ ( this ) . next ( ) . attr ( 'href' ) ;
37
39
if ( url ) {
38
40
$ ( this ) . parent ( ) . remove ( ) ;
39
- removeItem ( url )
41
+ removeItem ( url ) ;
40
42
}
41
-
42
43
} )
43
44
return false ;
44
45
} )
You can’t perform that action at this time.
0 commit comments