Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion examples/2002.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<p>Lists using AJAX work the same way as lists with local options.</p>
<p>In this example, our initial list has local options and all of it's children lists are powered by AJAX.</p>
<p>In this example, our initial list has local options and all of its children lists are powered by AJAX.</p>
<div id="search_bar"></div>
5 changes: 2 additions & 3 deletions js/autocomplete.js
Original file line number Diff line number Diff line change
Expand Up @@ -892,15 +892,14 @@ var buildOption = function(option, parentList) {
var childrenListName = getChildrenListName(option, parentList);

var html = '<li class="' + CSS.listItem + ' ' + CSS.option + '" ' +
'data-option-id="' + encode(optionId) + '">' +
option.optionHTML;
'data-option-id="' + encode(optionId) + '">';

// TODO: make this configurable
if (typeof childrenListName === 'string') {
html += '<span class="' + CSS.childrenIndicator + '">&#x25B8;</span>';
}

html += '</li>';
html += option.optionHTML + '</li>';

return html;
};
Expand Down