This breaks the installation

@bartv2 This JS part is breaking the installation (POST parameters are
not transferred), could you please take a look? THX.

JS console says:
uncaught exception: cannot call methods on button prior to
initialization; attempted to call method 'disable'
This commit is contained in:
Lukas Reschke 2013-01-25 15:47:57 +01:00
parent 0d2a58bc5d
commit ff4d62132a
1 changed files with 5 additions and 4 deletions

View File

@ -52,11 +52,12 @@ $(document).ready(function() {
// Save form parameters // Save form parameters
var post = $(this).serializeArray(); var post = $(this).serializeArray();
// FIXME: This lines are breaking the installation
// Disable inputs // Disable inputs
$(':submit', this).attr('disabled','disabled').val('Finishing …'); // $(':submit', this).attr('disabled','disabled').val('Finishing …');
$('input', this).addClass('ui-state-disabled').attr('disabled','disabled'); // $('input', this).addClass('ui-state-disabled').attr('disabled','disabled');
$('#selectDbType').button('disable'); // $('#selectDbType').button('disable');
$('label.ui-button', this).addClass('ui-state-disabled').attr('aria-disabled', 'true').button('disable'); // $('label.ui-button', this).addClass('ui-state-disabled').attr('aria-disabled', 'true').button('disable');
// Create the form // Create the form
var form = $('<form>'); var form = $('<form>');