aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--demos/popup/tooltip.html15
-rw-r--r--ui/jquery.ui.popup.js13
2 files changed, 5 insertions, 23 deletions
diff --git a/demos/popup/tooltip.html b/demos/popup/tooltip.html
index 40715d874..184c91b4b 100644
--- a/demos/popup/tooltip.html
+++ b/demos/popup/tooltip.html
@@ -18,14 +18,9 @@
}
});
- $( "#info-link" ).hover(
- function( event ) {
- $("#more-info").popup( "open" );
- },
- function( event ) {
- $("#more-info").popup( "close" );
- }
- );
+ $( "#info-link" ).mouseover( function( event ) {
+ $("#more-info").popup( "open" );
+ });
});
</script>
<style type="text/css">
@@ -50,9 +45,9 @@
<div class="demo">
<div>
- <textarea>More info about me to the right -></textarea> <span id="info-link" class="ui-icon ui-icon-info" />
+ <textarea>More info about me to the right -></textarea> <span id="info-link" class="ui-icon ui-icon-info"></span>
+ <div id="more-info">This is some more info and there is even more info on <a href="#">this page</a>.</div>
</div>
- <div id="more-info">This is some more info</div>
</div>
<div class="demo-description">
diff --git a/ui/jquery.ui.popup.js b/ui/jquery.ui.popup.js
index ce7a565db..4726f3a61 100644
--- a/ui/jquery.ui.popup.js
+++ b/ui/jquery.ui.popup.js
@@ -109,19 +109,6 @@ $.widget( "ui.popup", {
}
this._bind({
- focusout: function( event ) {
- // use a timer to allow click to clear it and letting that
- // handle the closing instead of opening again
- this.closeTimer = this._delay( function() {
- this.close( event );
- }, 100);
- },
- focusin: function( event ) {
- clearTimeout( this.closeTimer );
- }
- });
-
- this._bind({
// TODO only triggered on element if it can receive focus
// bind to document instead?
// either element itself or a child should be focusable