Browse Source

re-hiding buttons to prevent errors, only preventing submit on safari

pull/412/head
William Panting 11 years ago
parent
commit
11712df2d7
  1. 6
      js/spinner.js

6
js/spinner.js

@ -30,11 +30,15 @@
// Add Message.
var message = $('<div/>').text(settings.spinner[base].message);
$(id).after(message);
// Activate Spinner
// Make UI changes.
spinner.spin(this);
$('#edit-next').hide();
$('#edit-prev').hide();
// Submit the form after a set timeout, this handles problems with
// safari, in that safari submit's immediately..
if (navigator.userAgent.indexOf('Safari') != -1 && navigator.userAgent.indexOf('Chrome') == -1) {
$(':submit').attr('disabled', 'disabled');
}
setTimeout(function() {
// Allow for the button to be clicked, then click it then
// prevent the default behavoir.

Loading…
Cancel
Save