aboutsummaryrefslogtreecommitdiffstats
path: root/ui/jquery.ui.selectmenu.js
diff options
context:
space:
mode:
authorFelix Nagel <info@felixnagel.com>2011-09-27 21:46:29 +0200
committerFelix Nagel <info@felixnagel.com>2011-09-27 21:46:29 +0200
commit257067c81baac222cbd64222b2d100da32c90fbd (patch)
tree63cb71d2a200c67d6e0b84392aa74bac3287d1b2 /ui/jquery.ui.selectmenu.js
parent426ecaf21e4e29b3025ddeddb3b774e29fc47bc9 (diff)
downloadjquery-ui-257067c81baac222cbd64222b2d100da32c90fbd.tar.gz
jquery-ui-257067c81baac222cbd64222b2d100da32c90fbd.zip
Selectmenu: improved disable method, added and improved demo files
Diffstat (limited to 'ui/jquery.ui.selectmenu.js')
-rw-r--r--ui/jquery.ui.selectmenu.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/ui/jquery.ui.selectmenu.js b/ui/jquery.ui.selectmenu.js
index 4cb72ae57..6d54fa248 100644
--- a/ui/jquery.ui.selectmenu.js
+++ b/ui/jquery.ui.selectmenu.js
@@ -351,6 +351,11 @@ $.widget( "ui.selectmenu", {
}
if ( key === "disabled" ) {
this.newelement.button( "option", "disabled", value );
+ if ( value ) {
+ this.element.attr( "disabled", "disabled" );
+ } else {
+ this.element.removeAttr( "disabled" );
+ }
this.list.attr( "aria-disabled", value );
this.close();
}