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

Fix spinners to actually spin in request screens.

parent 20f8d5b6
No related merge requests found
...@@ -8,7 +8,7 @@ function setUpHoldRequestForm(recordId) { ...@@ -8,7 +8,7 @@ function setUpHoldRequestForm(recordId) {
$('#pickUpLocation').attr('disabled', 'disabled'); $('#pickUpLocation').attr('disabled', 'disabled');
return; return;
} }
$('#pickUpLocationLabel i').addClass("fa fa-spinner icon-spin"); $('#pickUpLocationLabel i').addClass("fa fa-spinner fa-spin");
var params = { var params = {
method: 'getRequestGroupPickupLocations', method: 'getRequestGroupPickupLocations',
id: recordId, id: recordId,
...@@ -31,11 +31,11 @@ function setUpHoldRequestForm(recordId) { ...@@ -31,11 +31,11 @@ function setUpHoldRequestForm(recordId) {
$('#pickUpLocation').append(option); $('#pickUpLocation').append(option);
}); });
$('#pickUpLocationLabel i').removeClass("fa fa-spinner icon-spin"); $('#pickUpLocationLabel i').removeClass("fa fa-spinner fa-spin");
$('#pickUpLocation').removeAttr('disabled'); $('#pickUpLocation').removeAttr('disabled');
}) })
.fail(function holdPickupLocationsFail(/*response*/) { .fail(function holdPickupLocationsFail(/*response*/) {
$('#pickUpLocationLabel i').removeClass("fa fa-spinner icon-spin"); $('#pickUpLocationLabel i').removeClass("fa fa-spinner fa-spin");
$('#pickUpLocation').removeAttr('disabled'); $('#pickUpLocation').removeAttr('disabled');
}); });
}); });
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
function setUpILLRequestForm(recordId) { function setUpILLRequestForm(recordId) {
$("#ILLRequestForm #pickupLibrary").change(function illPickupChange() { $("#ILLRequestForm #pickupLibrary").change(function illPickupChange() {
$("#ILLRequestForm #pickupLibraryLocation option").remove(); $("#ILLRequestForm #pickupLibraryLocation option").remove();
$("#ILLRequestForm #pickupLibraryLocationLabel i").addClass("fa fa-spinner icon-spin"); $("#ILLRequestForm #pickupLibraryLocationLabel i").addClass("fa fa-spinner fa-spin");
var url = VuFind.path + '/AJAX/JSON?' + $.param({ var url = VuFind.path + '/AJAX/JSON?' + $.param({
id: recordId, id: recordId,
method: 'getLibraryPickupLocations', method: 'getLibraryPickupLocations',
...@@ -22,10 +22,10 @@ function setUpILLRequestForm(recordId) { ...@@ -22,10 +22,10 @@ function setUpILLRequestForm(recordId) {
} }
$("#ILLRequestForm #pickupLibraryLocation").append(option); $("#ILLRequestForm #pickupLibraryLocation").append(option);
}); });
$("#ILLRequestForm #pickupLibraryLocationLabel i").removeClass("fa fa-spinner icon-spin"); $("#ILLRequestForm #pickupLibraryLocationLabel i").removeClass("fa fa-spinner fa-spin");
}) })
.fail(function illPickupLocationsFail(/*response*/) { .fail(function illPickupLocationsFail(/*response*/) {
$("#ILLRequestForm #pickupLibraryLocationLabel i").removeClass("fa fa-spinner icon-spin"); $("#ILLRequestForm #pickupLibraryLocationLabel i").removeClass("fa fa-spinner fa-spin");
}); });
}); });
$("#ILLRequestForm #pickupLibrary").change(); $("#ILLRequestForm #pickupLibrary").change();
......
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