File tree Expand file tree Collapse file tree 2 files changed +5
-23
lines changed Expand file tree Collapse file tree 2 files changed +5
-23
lines changed Original file line number Diff line number Diff line change 18
18
}
19
19
} ) ;
20
20
21
- $ ( "#info-link" ) . hover (
22
- function ( event ) {
23
- $ ( "#more-info" ) . popup ( "open" ) ;
24
- } ,
25
- function ( event ) {
26
- $ ( "#more-info" ) . popup ( "close" ) ;
27
- }
28
- ) ;
21
+ $ ( "#info-link" ) . mouseover ( function ( event ) {
22
+ $ ( "#more-info" ) . popup ( "open" ) ;
23
+ } ) ;
29
24
} ) ;
30
25
</ script >
31
26
< style type ="text/css ">
50
45
51
46
< div class ="demo ">
52
47
< div >
53
- < textarea > More info about me to the right -> </ textarea > < span id ="info-link " class ="ui-icon ui-icon-info " />
48
+ < textarea > More info about me to the right -> </ textarea > < span id ="info-link " class ="ui-icon ui-icon-info "> </ span >
49
+ < div id ="more-info "> This is some more info and there is even more info on < a href ="# "> this page</ a > .</ div >
54
50
</ div >
55
- < div id ="more-info "> This is some more info</ div >
56
51
</ div >
57
52
58
53
< div class ="demo-description ">
Original file line number Diff line number Diff line change @@ -108,19 +108,6 @@ $.widget( "ui.popup", {
108
108
} ) ;
109
109
}
110
110
111
- this . _bind ( {
112
- focusout : function ( event ) {
113
- // use a timer to allow click to clear it and letting that
114
- // handle the closing instead of opening again
115
- this . closeTimer = this . _delay ( function ( ) {
116
- this . close ( event ) ;
117
- } , 100 ) ;
118
- } ,
119
- focusin : function ( event ) {
120
- clearTimeout ( this . closeTimer ) ;
121
- }
122
- } ) ;
123
-
124
111
this . _bind ( {
125
112
// TODO only triggered on element if it can receive focus
126
113
// bind to document instead?
You can’t perform that action at this time.
0 commit comments