diff --git a/themes/bootstrap3/js/lightbox.js b/themes/bootstrap3/js/lightbox.js index b5a95fb08ee988533f05b8eb9188e66fa1cfd7da..b5f567bab85f503b615d831809baa5a7de7f9053 100644 --- a/themes/bootstrap3/js/lightbox.js +++ b/themes/bootstrap3/js/lightbox.js @@ -114,6 +114,9 @@ VuFind.lightbox = (function() { } } _update(html); + }) + .fail(function() { + showAlert(VuFind.translate('error_occurred'), 'danger'); }); return _xhr; }; diff --git a/themes/bootstrap3/templates/layout/layout.phtml b/themes/bootstrap3/templates/layout/layout.phtml index 6853101137494ef0c1550b70a35d908a352b24cb..25ab54c4eabf813b2b6faf5e11d1114658feeb1c 100644 --- a/themes/bootstrap3/templates/layout/layout.phtml +++ b/themes/bootstrap3/templates/layout/layout.phtml @@ -34,6 +34,7 @@ 'bulk_noitems_advice' => 'bulk_noitems_advice', 'bulk_save_success' => 'bulk_save_success', 'close' => 'close', + 'error_occurred' => 'An error has occurred', 'go_to_list' => 'go_to_list', 'libphonenumber_invalid' => 'libphonenumber_invalid', 'libphonenumber_invalidcountry' => 'libphonenumber_invalidcountry',