From eadc4fe443451d6c28aadec205ac4ed7178ee77a Mon Sep 17 00:00:00 2001 From: /jedi/ Date: Sun, 30 Dec 2018 22:39:28 +0100 Subject: [PATCH] fix reset --- templates/found.php | 2 +- templates/request.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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{