Skip to content
Snippets Groups Projects
Unverified Commit 56c2b6be authored by Jaime Pérez Crespo's avatar Jaime Pérez Crespo
Browse files

Actually fix the submit button in chrome.

The previous "fix" wasn't really fixing anything, it was indeed breaking the code that was changing the submit button, because jquery (and therefore "$") wasn't in scope for the script. Now, once jquery is available for that code, the bug appears again. This is due to an alleged "bug" in chrome, which prevents the button from actually working after it gets disabled. This makes full sense on the other hand, and as soon as we disable it, events won't keep being processed for that button, and as such, the form never gets submitted. This is why we need to submit the form manually.
parent 20510725
No related branches found
No related tags found
No related merge requests found
......@@ -2,5 +2,6 @@ $(document).ready(function () {
$('#submit_button').on('click', function () {
$(this).attr('disabled', 'disabled');
$(this).html($(this).data('processing'));
$(this).parents('form').submit();
});
});
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment