aboutsummaryrefslogtreecommitdiffstats
path: root/demos/autocomplete
diff options
context:
space:
mode:
authorJörn Zaefferer <joern.zaefferer@gmail.com>2013-11-13 18:51:48 +0100
committerJörn Zaefferer <joern.zaefferer@gmail.com>2013-11-13 18:51:48 +0100
commit14782c04e2201c53e3ecb80b086f1a4c27aa991d (patch)
treeb15e240c67148d4016cd5db8d5d90c9dd051f3dc /demos/autocomplete
parent25e1418fa608b4a9858619516e3f4e9994c15734 (diff)
downloadjquery-ui-14782c04e2201c53e3ecb80b086f1a4c27aa991d.tar.gz
jquery-ui-14782c04e2201c53e3ecb80b086f1a4c27aa991d.zip
Autocomplete: Update categories demo to use menu's new items option to exclude custom headers from menu focus
Diffstat (limited to 'demos/autocomplete')
-rw-r--r--demos/autocomplete/categories.html4
1 files changed, 4 insertions, 0 deletions
diff --git a/demos/autocomplete/categories.html b/demos/autocomplete/categories.html
index 6601ebc1c..e3c59ba13 100644
--- a/demos/autocomplete/categories.html
+++ b/demos/autocomplete/categories.html
@@ -21,6 +21,10 @@
</style>
<script>
$.widget( "custom.catcomplete", $.ui.autocomplete, {
+ _create: function() {
+ this._super();
+ this.menu.option( "items", "> :not(.ui-autocomplete-category)" );
+ },
_renderMenu: function( ul, items ) {
var that = this,
currentCategory = "";