Skip to content
Snippets Groups Projects
Commit 133ca493 authored by Ere Maijala's avatar Ere Maijala Committed by Robert Lange
Browse files

Show errors from item status AJAX regardless of whether status field is displayed.

parent b3a2ef69
No related merge requests found
......@@ -18,12 +18,7 @@ VuFind.register('itemStatuses', function ItemStatuses() {
if (typeof(result.error) != 'undefined'
&& result.error.length > 0
) {
// Only show error message if we also have a status indicator active:
if ($item.find('.status').length > 0) {
$item.find('.callnumAndLocation').empty().addClass('text-danger').append(result.error);
} else {
$item.find('.callnumAndLocation').addClass('hidden');
}
$item.find('.callnumAndLocation').empty().addClass('text-danger').append(result.error);
$item.find('.callnumber,.hideIfDetailed,.location').addClass('hidden');
} else if (typeof(result.full_status) != 'undefined'
&& result.full_status.length > 0
......
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