Skip to content
Permalink
Browse files

Autocomplete categories demo: Simplified styling.

  • Loading branch information
scottgonzalez committed Feb 17, 2010
1 parent 1342b2a commit f52018a344484d6d76b9b6fd478c54e8da99ee00
Showing with 2 additions and 1 deletion.
  1. +2 −1 demos/autocomplete/categories.html
@@ -11,6 +11,7 @@
<link type="text/css" href="../demos.css" rel="stylesheet" />
<style type="text/css">
.ui-autocomplete-category {
font-weight:bold;
padding:.2em .4em;
margin:.8em 0 .2em;
line-height:1.5;
@@ -46,7 +47,7 @@
currentCategory = "";
$.each( items, function( index, item ) {
if ( item.category != currentCategory ) {
ul.append( "<li class='ui-widget-header ui-autocomplete-category ui-corner-all'>" + item.category + "</li>" );
ul.append( "<li class='ui-autocomplete-category'>" + item.category + "</li>" );
currentCategory = item.category;
}
self._renderItem( ul, item );

0 comments on commit f52018a

Please sign in to comment.
You can’t perform that action at this time.