aboutsummaryrefslogtreecommitdiffstats
path: root/ui/jquery.ui.selectmenu.js
diff options
context:
space:
mode:
authorkborchers <kris.borchers@gmail.com>2012-03-18 21:47:40 -0500
committerkborchers <kris.borchers@gmail.com>2012-03-18 21:47:40 -0500
commit4a9e26c68e3443253174f927f4f741d706402032 (patch)
treeef3fe541ae89a57ad8c711eeab7b949ade6053d1 /ui/jquery.ui.selectmenu.js
parente38feeacb6f14579a146e6ddc5429a157271cdc9 (diff)
downloadjquery-ui-4a9e26c68e3443253174f927f4f741d706402032.tar.gz
jquery-ui-4a9e26c68e3443253174f927f4f741d706402032.zip
Selectmenu: Add links to all menu items to be in line with what menu expects and remove the extra space added to disabled items
Diffstat (limited to 'ui/jquery.ui.selectmenu.js')
-rw-r--r--ui/jquery.ui.selectmenu.js13
1 files changed, 6 insertions, 7 deletions
diff --git a/ui/jquery.ui.selectmenu.js b/ui/jquery.ui.selectmenu.js
index dbf15d33b..98c8c77c2 100644
--- a/ui/jquery.ui.selectmenu.js
+++ b/ui/jquery.ui.selectmenu.js
@@ -258,14 +258,13 @@ $.widget( "ui.selectmenu", {
_renderItem: function( ul, item) {
var li = $( "<li />" ).data( "item.selectmenu", item );
if ( item.disabled ) {
- li.addClass( 'ui-state-disabled' ).html( item.label );
- } else {
- li.append( $( "<a />", {
- html: item.label,
- href: '#'
- })
- );
+ li.addClass( 'ui-state-disabled' );
}
+ li.append( $( "<a />", {
+ html: item.label,
+ href: '#'
+ })
+ );
return li.appendTo( ul );
},