aboutsummaryrefslogtreecommitdiffstats
path: root/ui/jquery.ui.selectmenu.js
diff options
context:
space:
mode:
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 );
},