add some "no results" feedback to the searching + minor UI improvements

This commit is contained in:
Drewster727 2016-03-28 21:51:48 -05:00
commit 855689d0b9
5 changed files with 51 additions and 11 deletions

View file

@ -7,6 +7,8 @@
var searchSource = $("#search-template").html();
var searchTemplate = Handlebars.compile(searchSource);
var noResultsHtml = "<div class='no-search-results'>" +
"<i class='fa fa-film no-search-results-icon'></i><div class='no-search-results-text'>Sorry, we didn't find any results!</div></div>";
var movieTimer = 0;
var tvimer = 0;
@ -124,6 +126,9 @@ function movieSearch() {
$("#movieList").append(html);
});
}
else {
$("#movieList").html(noResultsHtml);
}
$('#movieSearchButton').attr("class","fa fa-search");
});
};
@ -140,6 +145,9 @@ function tvSearch() {
$("#tvList").append(html);
});
}
else {
$("#tvList").html(noResultsHtml);
}
$('#tvSearchButton').attr("class", "fa fa-search");
});
};