Skip to content
Snippets Groups Projects
Commit 0812d15e authored by Demian Katz's avatar Demian Katz
Browse files

Style fixes.

parent 28d87c6a
No related merge requests found
...@@ -145,7 +145,7 @@ VuFind.register('lightbox', function() { ...@@ -145,7 +145,7 @@ VuFind.register('lightbox', function() {
} }
// Place Hold error isolation // Place Hold error isolation
if (obj.url.match(/\/Record/) && (obj.url.match(/Hold\?/) || obj.url.match(/Request\?/))) { if (obj.url.match(/\/Record/) && (obj.url.match(/Hold\?/) || obj.url.match(/Request\?/))) {
var testDiv = $('<div/>').html(html) var testDiv = $('<div/>').html(html);
var error = testDiv.find('.flash-message.alert-danger'); var error = testDiv.find('.flash-message.alert-danger');
if (error.length && testDiv.find('.record').length) { if (error.length && testDiv.find('.record').length) {
showAlert(error[0].innerHTML, 'danger'); showAlert(error[0].innerHTML, 'danger');
......
...@@ -15,7 +15,7 @@ VuFind.register('openurl', function() { ...@@ -15,7 +15,7 @@ VuFind.register('openurl', function() {
if (textStatus == 'abort' || typeof response.responseJSON === 'undefined') { return; } if (textStatus == 'abort' || typeof response.responseJSON === 'undefined') { return; }
$target.append(response.responseJSON.data); $target.append(response.responseJSON.data);
}); });
} };
var _embedOpenUrlLinks = function(element) { var _embedOpenUrlLinks = function(element) {
// Extract the OpenURL associated with the clicked element: // Extract the OpenURL associated with the clicked element:
...@@ -33,7 +33,7 @@ VuFind.register('openurl', function() { ...@@ -33,7 +33,7 @@ VuFind.register('openurl', function() {
if (target.hasClass('hidden')) { if (target.hasClass('hidden')) {
_loadResolverLinks(target.removeClass('hidden'), openUrl, element.data('search-class-id')); _loadResolverLinks(target.removeClass('hidden'), openUrl, element.data('search-class-id'));
} }
} };
// Assign actions to the OpenURL links. This can be called with a container e.g. when // Assign actions to the OpenURL links. This can be called with a container e.g. when
// combined results fetched with AJAX are loaded. // combined results fetched with AJAX are loaded.
...@@ -58,6 +58,6 @@ VuFind.register('openurl', function() { ...@@ -58,6 +58,6 @@ VuFind.register('openurl', function() {
}); });
container.find('.openUrlEmbed.openUrlEmbedAutoLoad a').trigger('click'); container.find('.openUrlEmbed.openUrlEmbedAutoLoad a').trigger('click');
} };
return {init: init} return {init: init};
}); });
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