Skip to content

Commit

Permalink
don't show a message on default no results action
Browse files Browse the repository at this point in the history
  • Loading branch information
laktek committed Mar 1, 2011
1 parent 109d87d commit b596c59
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 11 deletions.
2 changes: 0 additions & 2 deletions jquery.smart_autocomplete.js
Expand Up @@ -268,8 +268,6 @@
if(result_container){
//clear previous results
options.clearResults();

result_container.append("<li class='smart_autocomplete_no_result'>Sorry, No Results Found</li>");
}

}
Expand Down
9 changes: 0 additions & 9 deletions spec/core/jquery.smart_autocomplete_spec.js
Expand Up @@ -269,15 +269,6 @@ describe('Smart AutoComplete', function () {
expect(mock_autocomplete_obj.clearResults).toHaveBeenCalled();
});

it("should append no results found banner to result container", function(){
setFixtures("<input id='autoCompleteField'/><ul id='resultsContainer'></ul>");
$("#autoCompleteField").smartAutoComplete({ resultsContainer: "#resultsContainer" });
$("#autoCompleteField").trigger('noResults');

expect($("#resultsContainer")).toHaveText('Sorry, No Results Found');

});

});

describe('show results event', function(){
Expand Down

0 comments on commit b596c59

Please sign in to comment.