diff options
author | Felix Nagel <info@felixnagel.com> | 2013-03-19 20:16:22 +0100 |
---|---|---|
committer | Felix Nagel <info@felixnagel.com> | 2013-03-19 20:20:06 +0100 |
commit | ba0e8040f0bfe9ea87d208d0b2a6a81bfd4f3236 (patch) | |
tree | 71c733737cbe06c96904c7909f5d778d13b3d6b8 /ui/jquery.ui.selectmenu.js | |
parent | 1ce8d87f8bee3b1ec8698e0e2b8ead726d0d4ca2 (diff) | |
download | jquery-ui-ba0e8040f0bfe9ea87d208d0b2a6a81bfd4f3236.tar.gz jquery-ui-ba0e8040f0bfe9ea87d208d0b2a6a81bfd4f3236.zip |
Selectmenu: add ui-state-disabled and aria-disabled manually as its removed from Widget, see 44d07173db32b498e5f83f60db290ff1463daee3
Diffstat (limited to 'ui/jquery.ui.selectmenu.js')
-rw-r--r-- | ui/jquery.ui.selectmenu.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ui/jquery.ui.selectmenu.js b/ui/jquery.ui.selectmenu.js index 01a9b229c..7e3dcb966 100644 --- a/ui/jquery.ui.selectmenu.js +++ b/ui/jquery.ui.selectmenu.js @@ -393,6 +393,10 @@ $.widget( "ui.selectmenu", { } if ( key === "disabled" ) { this.menu.menu( "option", "disabled", value ); + this.button + .toggleClass( "ui-state-disabled", !!value ) + .attr( "aria-disabled", value ); + if ( value ) { this.element.attr( "disabled", "disabled" ); this.button.attr( "tabindex", -1 ); |