mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Catch errors
This commit is contained in:
parent
03cec69af3
commit
d809b77154
4
public/v1/js/ff/search/index.js
vendored
4
public/v1/js/ff/search/index.js
vendored
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user