Browse Source

Updated JS to ignore hidden next button when adding the spinner to the form so it does not add two.

pull/563/head
Matthew Perry 11 years ago
parent
commit
b726f2d5b6
  1. 3
      js/spinner.js

3
js/spinner.js

@ -22,6 +22,8 @@
}); });
for (var base in settings.spinner) { for (var base in settings.spinner) {
var id = '#' + base; var id = '#' + base;
// Don't add spinner to the hidden next/ingest button.
if (id != '#edit-hidden-next') {
$(id, context).once('spinner', function () { $(id, context).once('spinner', function () {
var spinner = new Spinner(settings.spinner[base].opts); var spinner = new Spinner(settings.spinner[base].opts);
$(id).parents('form').one('submit', function (event) { $(id).parents('form').one('submit', function (event) {
@ -54,5 +56,6 @@
}); });
} }
} }
}
}; };
})(jQuery); })(jQuery);

Loading…
Cancel
Save