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. 8
      js/spinner.js

8
js/spinner.js

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

Loading…
Cancel
Save