Skip to content
Snippets Groups Projects
Commit 93428525 authored by Ere Maijala's avatar Ere Maijala Committed by André Lahmann
Browse files

Added error handling to lightbox ajax load.

parent 6d2cab10
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