File tree 1 file changed +26
-26
lines changed
1 file changed +26
-26
lines changed Original file line number Diff line number Diff line change 11
11
< script src ="../../ui/jquery.ui.position.js "> </ script >
12
12
< script src ="../../ui/jquery.ui.menu.js "> </ script >
13
13
< link rel ="stylesheet " href ="../demos.css ">
14
+ < style >
15
+ .ui-menu { position : absolute; width : 100px ; }
16
+ </ style >
14
17
< script >
15
18
$ ( function ( ) {
16
19
$ ( "#rerun" )
17
20
. button ( )
18
21
. click ( function ( ) {
19
22
alert ( "Running the last action" ) ;
20
23
} )
21
- . next ( )
22
- . button ( {
23
- text : false ,
24
- icons : {
25
- primary : "ui-icon-triangle-1-s"
26
- }
27
- } )
28
- . click ( function ( ) {
29
- var menu = $ ( this ) . parent ( ) . next ( ) . show ( ) . position ( {
30
- my : "left top" ,
31
- at : "left bottom" ,
32
- of : this
33
- } ) ;
34
- $ ( document ) . one ( "click" , function ( ) {
35
- menu . hide ( ) ;
36
- } ) ;
37
- return false ;
38
- } )
39
- . parent ( )
40
- . buttonset ( )
41
- . next ( )
42
- . hide ( )
43
- . menu ( ) ;
24
+ . next ( )
25
+ . button ( {
26
+ text : false ,
27
+ icons : {
28
+ primary : "ui-icon-triangle-1-s"
29
+ }
30
+ } )
31
+ . click ( function ( ) {
32
+ var menu = $ ( this ) . parent ( ) . next ( ) . show ( ) . position ( {
33
+ my : "left top" ,
34
+ at : "left bottom" ,
35
+ of : this
36
+ } ) ;
37
+ $ ( document ) . one ( "click" , function ( ) {
38
+ menu . hide ( ) ;
39
+ } ) ;
40
+ return false ;
41
+ } )
42
+ . parent ( )
43
+ . buttonset ( )
44
+ . next ( )
45
+ . hide ( )
46
+ . menu ( ) ;
44
47
} ) ;
45
48
</ script >
46
- < style >
47
- .ui-menu { position : absolute; width : 100px ; }
48
- </ style >
49
49
</ head >
50
50
< body >
51
51
You can’t perform that action at this time.
0 commit comments