]> source.dussan.org Git - jquery-ui.git/commitdiff
Popup: Removed the focusout and focusin handlers which are nolonger necessary. Also...
authorkborchers <kris.borchers@gmail.com>
Tue, 11 Oct 2011 05:06:09 +0000 (00:06 -0500)
committerkborchers <kris.borchers@gmail.com>
Tue, 11 Oct 2011 05:06:09 +0000 (00:06 -0500)
demos/popup/tooltip.html
ui/jquery.ui.popup.js

index 40715d87462e05d277dd7df79d3912fdcb78979d..184c91b4b65fe922176444c2cf002b4ff742df45 100644 (file)
                        }
                });
 
-               $( "#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">
index ce7a565db8cdb11a2ee45cbedea25fa9b53b9143..4726f3a61ba39f7d58abf53097bbf58390748445 100644 (file)
@@ -108,19 +108,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?