Browse Source

Merge pull request #581 from jordandukart/7.x-spinner

Add an extra class so we can use the spinner elsewhere.
pull/584/head
William Panting 10 years ago
parent
commit
0807af6b56
  1. 1
      includes/ingest.form.inc
  2. 1
      js/spinner.js

1
includes/ingest.form.inc

@ -762,6 +762,7 @@ function islandora_ingest_form_ingest_button_process(array $element) {
"$islandora_path/js/spinner.js", "$islandora_path/js/spinner.js",
), ),
); );
$element['#attributes']['class'][] = 'islandora-spinner-submit';
return $element; return $element;
} }

1
js/spinner.js

@ -44,6 +44,7 @@
spinner.spin(this); spinner.spin(this);
$('#edit-next').hide(); $('#edit-next').hide();
$('#edit-prev').hide(); $('#edit-prev').hide();
$('.islandora-spinner-submit').hide();
// Submit the form after a set timeout, this handles problems with // Submit the form after a set timeout, this handles problems with
// safari, in that safari submits immediately.. // safari, in that safari submits immediately..
if (navigator.userAgent.indexOf('Safari') !== -1 && navigator.userAgent.indexOf('Chrome') === -1) { if (navigator.userAgent.indexOf('Safari') !== -1 && navigator.userAgent.indexOf('Chrome') === -1) {

Loading…
Cancel
Save