Add an extra class so we can use the spinner elsewhere.
@ -762,6 +762,7 @@ function islandora_ingest_form_ingest_button_process(array $element) {
"$islandora_path/js/spinner.js",
),
);
$element['#attributes']['class'][] = 'islandora-spinner-submit';
return $element;
}
@ -44,6 +44,7 @@
spinner.spin(this);
$('#edit-next').hide();
$('#edit-prev').hide();
$('.islandora-spinner-submit').hide();
// Submit the form after a set timeout, this handles problems with
// safari, in that safari submits immediately..
if (navigator.userAgent.indexOf('Safari') !== -1 && navigator.userAgent.indexOf('Chrome') === -1) {