disable form buttons before submitting to server (#4812)

This commit is contained in:
Frédéric Péters 2014-07-03 11:56:21 +02:00
parent ec4fcd4b4b
commit 2dbd6c93da
1 changed files with 5 additions and 0 deletions

View File

@ -50,6 +50,11 @@
}
};
$(document).on('form-submit-validate', function(e, data, form) {
/* before the form gets submitted to the server, we disable form buttons */
$(form).find('.button-field').prop('disabled', 'disabled');
});
}(jQuery));
/* watch version being selected, so menu entries can be shown/hidden */