diff options
author | Felix Nagel <info@felixnagel.com> | 2012-02-23 23:32:17 +0100 |
---|---|---|
committer | Felix Nagel <info@felixnagel.com> | 2012-02-23 23:32:17 +0100 |
commit | 96102f7692ca213267e8efa42393562b2503fb7c (patch) | |
tree | 096a7be971b5d7b367fdcd7d9fcf8c937b3d3a04 /ui/jquery.ui.selectmenu.js | |
parent | 29effb38eb04ae1cf779c96edd36e90c56438127 (diff) | |
download | jquery-ui-96102f7692ca213267e8efa42393562b2503fb7c.tar.gz jquery-ui-96102f7692ca213267e8efa42393562b2503fb7c.zip |
Selectmenu: use _hoverable and _focusable for button events
Diffstat (limited to 'ui/jquery.ui.selectmenu.js')
-rw-r--r-- | ui/jquery.ui.selectmenu.js | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/ui/jquery.ui.selectmenu.js b/ui/jquery.ui.selectmenu.js index 9f655fbe6..7e194fd72 100644 --- a/ui/jquery.ui.selectmenu.js +++ b/ui/jquery.ui.selectmenu.js @@ -51,6 +51,8 @@ $.widget( "ui.selectmenu", { this._drawButton(); this._bind( this.button, this._buttonEvents ); + this._hoverable( this.button ); + this._focusable( this.button ); this._drawMenu(); @@ -77,13 +79,13 @@ $.widget( "ui.selectmenu", { 'aria-autocomplete': 'list', 'aria-owns': this.ids.menu, 'aria-haspopup': true - }); - + }); + this.button.prepend( $( '<span class="ui-icon ' + ( this.options.dropdown ? 'ui-icon-triangle-1-s' : 'ui-icon-triangle-2-n-s' ) + '"/>' ) ); - + this.buttonText = $( '<span />', { 'class': 'ui-selectmenu-text' , - html: this.element.find( "option:selected" ).text() || ' ' + html: this.element.find( "option:selected" ).text() || ' ' }) .appendTo( this.button ); |