Skip to content

Commit f24ab94

Browse files
committed
Popup: Removed the focusout and focusin handlers which are nolonger necessary. Also updated the tooltip style demo to have a little more interactive content.
1 parent fa26847 commit f24ab94

File tree

2 files changed

+5
-23
lines changed

2 files changed

+5
-23
lines changed

demos/popup/tooltip.html

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,9 @@
1818
}
1919
});
2020

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+
});
2924
});
3025
</script>
3126
<style type="text/css">
@@ -50,9 +45,9 @@
5045

5146
<div class="demo">
5247
<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>
5450
</div>
55-
<div id="more-info">This is some more info</div>
5651
</div>
5752

5853
<div class="demo-description">

ui/jquery.ui.popup.js

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -108,19 +108,6 @@ $.widget( "ui.popup", {
108108
});
109109
}
110110

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-
124111
this._bind({
125112
// TODO only triggered on element if it can receive focus
126113
// bind to document instead?

0 commit comments

Comments
 (0)