Skip to content
Snippets Groups Projects
Commit 883936d8 authored by Chris Hallberg's avatar Chris Hallberg
Browse files

Show only errors when they occur in holdings lightboxes.

parent 18de908f
No related merge requests found
......@@ -143,6 +143,14 @@ VuFind.register('lightbox', function() {
_refreshPage();
return;
}
// Place Hold error isolation
if (obj.url.match(/\/Record/) && (obj.url.match(/Hold\?/) || obj.url.match(/Request\?/))) {
var error = $('<div/>').html(html).find('.flash-message.alert-danger');
if (error.length) {
showAlert(error[0].innerHTML, 'danger');
return false;
}
}
if ( // Close the lightbox after deliberate login
obj.method // is a form
&& ((obj.url.match(/MyResearch/) && !obj.url.match(/Bulk/)) // that matches login/create account
......
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