aboutsummaryrefslogtreecommitdiffstats
path: root/demos
diff options
context:
space:
mode:
authorTJ VanToll <tj.vantoll@gmail.com>2014-09-26 17:34:22 -0400
committerTJ VanToll <tj.vantoll@gmail.com>2014-10-25 10:10:38 -0700
commite9643f6bfc922773e29e3084e64de0240b547f32 (patch)
treeadb642df12433f050860e50f43c642802b278106 /demos
parent4ac7b1f679de3df93f6a3681334ef0ecaf12bcb2 (diff)
downloadjquery-ui-e9643f6bfc922773e29e3084e64de0240b547f32.tar.gz
jquery-ui-e9643f6bfc922773e29e3084e64de0240b547f32.zip
Selectmenu: Re-add wrappers to menu items
Diffstat (limited to 'demos')
-rw-r--r--demos/selectmenu/custom_render.html9
1 files changed, 5 insertions, 4 deletions
diff --git a/demos/selectmenu/custom_render.html b/demos/selectmenu/custom_render.html
index 76493dc98..9329b81b1 100644
--- a/demos/selectmenu/custom_render.html
+++ b/demos/selectmenu/custom_render.html
@@ -16,7 +16,8 @@
$(function() {
$.widget( "custom.iconselectmenu", $.ui.selectmenu, {
_renderItem: function( ul, item ) {
- var li = $( "<li>", { text: item.label } );
+ var li = $( "<li>" ),
+ wrapper = $( "<div>", { text: item.label } );
if ( item.disabled ) {
li.addClass( "ui-state-disabled" );
@@ -26,9 +27,9 @@
style: item.element.attr( "data-style" ),
"class": "ui-icon " + item.element.attr( "data-class" )
})
- .appendTo( li );
+ .appendTo( wrapper );
- return li.appendTo( ul );
+ return li.append( wrapper ).appendTo( ul );
}
});
@@ -63,7 +64,7 @@
}
/* select with custom icons */
- .ui-selectmenu-menu .ui-menu.customicons .ui-menu-item {
+ .ui-selectmenu-menu .ui-menu.customicons .ui-menu-item-wrapper {
padding: 0.5em 0 0.5em 3em;
}
.ui-selectmenu-menu .ui-menu.customicons .ui-menu-item .ui-icon {