Catch errors

This commit is contained in:
James Cole 2020-09-05 07:37:10 +02:00
parent 03cec69af3
commit d809b77154

View File

@ -38,6 +38,10 @@ function searchFailure() {
}
function presentSearchResults(data) {
if(typeof data === 'undefined') {
searchFailure();
return;
}
$('.search_ongoing').hide();
$('.search_box').find('.overlay').remove();
$('.search_results').html(data.html).show();