File tree Expand file tree Collapse file tree 1 file changed +26
-26
lines changed
Expand file tree Collapse file tree 1 file changed +26
-26
lines changed Original file line number Diff line number Diff line change 1111 < script src ="../../ui/jquery.ui.position.js "> </ script >
1212 < script src ="../../ui/jquery.ui.menu.js "> </ script >
1313 < link rel ="stylesheet " href ="../demos.css ">
14+ < style >
15+ .ui-menu { position : absolute; width : 100px ; }
16+ </ style >
1417 < script >
1518 $ ( function ( ) {
1619 $ ( "#rerun" )
1720 . button ( )
1821 . click ( function ( ) {
1922 alert ( "Running the last action" ) ;
2023 } )
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 ( ) ;
4447 } ) ;
4548 </ script >
46- < style >
47- .ui-menu { position : absolute; width : 100px ; }
48- </ style >
4949</ head >
5050< body >
5151
You can’t perform that action at this time.
0 commit comments