Skip to content

Commit

Permalink
Revert "fix(form): submit once"
Browse files Browse the repository at this point in the history
This reverts commit b008442.
  • Loading branch information
btry committed Oct 4, 2022
1 parent f43df3e commit 93887d5
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions js/scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -1381,10 +1381,6 @@ var plugin_formcreator = new function() {
var form = document.querySelector('form[data-itemtype]');
var data = new FormData(form);
data.append('submit_formcreator', '');

// Disable submit button
$(form).find("button[type=submit]").prop('disabled', true);

$.post({
url: formcreatorRootDoc + '/ajax/formanswer.php',
processData: false,
Expand All @@ -1408,9 +1404,6 @@ var plugin_formcreator = new function() {
$('#messages_after_redirect').append(html);
initMessagesAfterRedirectToasts();
}
}).always(function (data) {
// Enable submit button
$(form).find("button[type=submit]").prop('disabled', false);
});
};

Expand Down

0 comments on commit 93887d5

Please sign in to comment.