Skip to content

Commit a5e551a

Browse files
committed
Merge pull request risuiowa#33 from jaozafra/master
Fixed "no existing match" not showing up if list is empty
2 parents 929f57d + af70d37 commit a5e551a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/assets/javascripts/autocomplete-rails-uncompressed.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@
7979
options[key] = attrVal ? attrVal : value;
8080
}
8181
});
82-
if(arguments[0].length == 0 && jQuery.inArray(options.showNoMatches, [true, 'true'])) {
82+
if(arguments[0].length == 0 && jQuery.inArray(options.showNoMatches, [true, 'true']) >= 0) {
8383
arguments[0] = [];
8484
arguments[0][0] = { id: "", label: options.noMatchesLabel };
8585
}

lib/assets/javascripts/autocomplete-rails.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)