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
No related merge requests found
......@@ -114,6 +114,9 @@ VuFind.lightbox = (function() {
}
}
_update(html);
})
.fail(function() {
showAlert(VuFind.translate('error_occurred'), 'danger');
});
return _xhr;
};
......
......@@ -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',
......
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