From 96102f7692ca213267e8efa42393562b2503fb7c Mon Sep 17 00:00:00 2001 From: Felix Nagel Date: Thu, 23 Feb 2012 23:32:17 +0100 Subject: Selectmenu: use _hoverable and _focusable for button events --- ui/jquery.ui.selectmenu.js | 10 ++++++---- 1 file 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( $( '' ) ); - + this.buttonText = $( '', { 'class': 'ui-selectmenu-text' , - html: this.element.find( "option:selected" ).text() || ' ' + html: this.element.find( "option:selected" ).text() || ' ' }) .appendTo( this.button ); -- cgit v1.2.3