mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
Catch errors
This commit is contained in:
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();
|
||||
|
Reference in New Issue
Block a user