Skip to content

Commit

Permalink
fix for zero-length search input
Browse files Browse the repository at this point in the history
  • Loading branch information
jborak committed Nov 8, 2015
1 parent f990129 commit 9130245
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions appengine/frontend/js/spotter.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ function searchItems(event) {
if (typeof input == "undefined" || input === null) {
return;
}
if (input.length == 0) {
return;
}

var xhr = new XMLHttpRequest();
xhr.onreadystatechange = function() {
Expand Down

0 comments on commit 9130245

Please sign in to comment.