Corrected #convertForm 'on submit' event handler
#convertForm 'on submit' event handler needs event object as an argument.
This commit is contained in:
parent
baecd043aa
commit
02912f7605
@ -58,7 +58,7 @@
|
|||||||
crossorigin="anonymous"></script>
|
crossorigin="anonymous"></script>
|
||||||
<script>
|
<script>
|
||||||
$(function() {
|
$(function() {
|
||||||
$('#convertForm').submit(function() {
|
$('#convertForm').submit(function(event) {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: '/api/convert',
|
url: '/api/convert',
|
||||||
|
Loading…
Reference in New Issue
Block a user