Skip to content
Snippets Groups Projects
Commit f07e10b0 authored by Ere Maijala's avatar Ere Maijala
Browse files

Added error handling to lightbox ajax load.

parent 03e5534b
Branches
Tags instance/local/staging/20210419
No related merge requests found
...@@ -114,6 +114,9 @@ VuFind.lightbox = (function() { ...@@ -114,6 +114,9 @@ VuFind.lightbox = (function() {
} }
} }
_update(html); _update(html);
})
.fail(function() {
showAlert(VuFind.translate('error_occurred'), 'danger');
}); });
return _xhr; return _xhr;
}; };
......
...@@ -34,6 +34,7 @@ ...@@ -34,6 +34,7 @@
'bulk_noitems_advice' => 'bulk_noitems_advice', 'bulk_noitems_advice' => 'bulk_noitems_advice',
'bulk_save_success' => 'bulk_save_success', 'bulk_save_success' => 'bulk_save_success',
'close' => 'close', 'close' => 'close',
'error_occurred' => 'An error has occurred',
'go_to_list' => 'go_to_list', 'go_to_list' => 'go_to_list',
'libphonenumber_invalid' => 'libphonenumber_invalid', 'libphonenumber_invalid' => 'libphonenumber_invalid',
'libphonenumber_invalidcountry' => 'libphonenumber_invalidcountry', 'libphonenumber_invalidcountry' => 'libphonenumber_invalidcountry',
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment