diff --git a/templates/found.php b/templates/found.php index 8dc99bb..9ac69f8 100644 --- a/templates/found.php +++ b/templates/found.php @@ -55,7 +55,7 @@ $.post( "/ajax.php?action=add_found", $( "#found_form" ).serialize() ).done(function( data ) {; reply = JSON.parse(data); if(reply.status == "ok"){ - $( "#lost_form" ).trigger("reset"); + $( "#found_form" ).trigger("reset"); $("#alertmessage").collapse('hide'); $("#successmessage").html(reply.message).collapse('show'); }else{ diff --git a/templates/request.php b/templates/request.php index 55ece5b..e7acdec 100644 --- a/templates/request.php +++ b/templates/request.php @@ -58,7 +58,7 @@ $.post( "/ajax.php?action=add_featurerequest", $( "#request_form" ).serialize() ).done(function( data ) {; reply = JSON.parse(data); if(reply.status == "ok"){ - $( "#lost_form" ).trigger("reset"); + $( "#request_form" ).trigger("reset"); $("#alertmessage").collapse('hide'); $("#successmessage").html(reply.message).collapse('show'); }else{