diff options
author | kborchers <kris.borchers@gmail.com> | 2012-01-22 11:24:49 -0600 |
---|---|---|
committer | kborchers <kris.borchers@gmail.com> | 2012-01-22 11:24:49 -0600 |
commit | 8c5c6e0a32a1e87cab575cbb265873fccbd416df (patch) | |
tree | f55d964a0e55704c7118572ba51ab90908d1e579 /ui/jquery.ui.menu.js | |
parent | 6800e1a2f97a7d8aaf20d065aa2ce517528e5068 (diff) | |
download | jquery-ui-8c5c6e0a32a1e87cab575cbb265873fccbd416df.tar.gz jquery-ui-8c5c6e0a32a1e87cab575cbb265873fccbd416df.zip |
Menu: Added check for the disabled option on create.
Diffstat (limited to 'ui/jquery.ui.menu.js')
-rw-r--r-- | ui/jquery.ui.menu.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ui/jquery.ui.menu.js b/ui/jquery.ui.menu.js index 83ea3c3c0..ebfd5087c 100644 --- a/ui/jquery.ui.menu.js +++ b/ui/jquery.ui.menu.js @@ -45,6 +45,9 @@ $.widget( "ui.menu", { event.preventDefault(); } }, this)); + if ( this.options.disabled ) { + this.element.addClass( "ui-state-disabled" ); + } this._bind({ // Prevent focus from sticking to links inside menu after clicking // them (focus should always stay on UL during navigation). |