Corrected #convertForm 'on submit' event handler

#convertForm 'on submit' event handler needs event object as an argument.
This commit is contained in:
Egor Glushkov 2018-11-07 15:11:33 +03:00 committed by GitHub
parent baecd043aa
commit 02912f7605
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -58,7 +58,7 @@
crossorigin="anonymous"></script>
<script>
$(function() {
$('#convertForm').submit(function() {
$('#convertForm').submit(function(event) {
event.preventDefault();
$.ajax({
url: '/api/convert',