|
|
@ -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..
|
|
|
|
|
|
|
|
if (navigator.userAgent.indexOf('Safari') != -1 && navigator.userAgent.indexOf('Chrome') == -1) {
|
|
|
|
$(':submit').attr('disabled', 'disabled'); |
|
|
|
$(':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.
|
|
|
|