diff options
author | Felix Nagel <info@felixnagel.com> | 2013-02-13 23:09:00 +0100 |
---|---|---|
committer | Felix Nagel <info@felixnagel.com> | 2013-02-13 23:09:00 +0100 |
commit | 06eb3bff6a2e2a40fc5a540f46680c6fdf830f94 (patch) | |
tree | b7bf211fe12a6452fa45f8441102fad839cfe7d6 /ui/jquery.ui.selectmenu.js | |
parent | 8a5e8696adb20dbd8ce2daac91b061130d6543f4 (diff) | |
download | jquery-ui-06eb3bff6a2e2a40fc5a540f46680c6fdf830f94.tar.gz jquery-ui-06eb3bff6a2e2a40fc5a540f46680c6fdf830f94.zip |
Selectmenu: menuItems now contains link elements instead of list elements
Diffstat (limited to 'ui/jquery.ui.selectmenu.js')
-rw-r--r-- | ui/jquery.ui.selectmenu.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ui/jquery.ui.selectmenu.js b/ui/jquery.ui.selectmenu.js index 69ea12e26..0468983a5 100644 --- a/ui/jquery.ui.selectmenu.js +++ b/ui/jquery.ui.selectmenu.js @@ -146,7 +146,7 @@ $.widget( "ui.selectmenu", { that.focus = item.index; // Set ARIA active descendant - that.button.attr( "aria-activedescendant", that.menuItems.eq( item.index ).find( "a" ).attr( "id" ) ); + that.button.attr( "aria-activedescendant", that.menuItems.eq( item.index ).attr( "id" ) ); }, // set ARIA role role: "listbox" @@ -172,7 +172,7 @@ $.widget( "ui.selectmenu", { this._renderMenu( this.menu, this.items ); this.menu.menu( "refresh" ); - this.menuItems = this.menu.find( "li" ).not( ".ui-selectmenu-optgroup" ); + this.menuItems = this.menu.find( "li" ).not( ".ui-selectmenu-optgroup" ).find( "a" ); item = this._getSelectedItem(); // make sure menu is selected item aware @@ -372,11 +372,11 @@ $.widget( "ui.selectmenu", { }, _setAria: function( item ) { - var link = this.menuItems.eq( item.index ).find( "a" ), + var link = this.menuItems.eq( item.index ), id = link.attr( "id" ); // change ARIA attr - this.menuItems.find( "a" ).attr( "aria-selected", false ); + this.menuItems.attr( "aria-selected", false ); link.attr( "aria-selected", true ); this.button.attr({ "aria-labelledby": id, |