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

Make place hold permission error checking more precise, so login fields still appear.

parent 883936d8
Branches
Tags
No related merge requests found
......@@ -145,8 +145,9 @@ VuFind.register('lightbox', function() {
}
// 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) {
var testDiv = $('<div/>').html(html)
var error = testDiv.find('.flash-message.alert-danger');
if (error.length && testDiv.find('.record').length) {
showAlert(error[0].innerHTML, 'danger');
return false;
}
......
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