fix reset

This commit is contained in:
/jedi/ 2018-12-30 22:39:28 +01:00
parent 935d48f6f7
commit eadc4fe443
2 changed files with 2 additions and 2 deletions

View file

@ -55,7 +55,7 @@
$.post( "/ajax.php?action=add_found", $( "#found_form" ).serialize() ).done(function( data ) {; $.post( "/ajax.php?action=add_found", $( "#found_form" ).serialize() ).done(function( data ) {;
reply = JSON.parse(data); reply = JSON.parse(data);
if(reply.status == "ok"){ if(reply.status == "ok"){
$( "#lost_form" ).trigger("reset"); $( "#found_form" ).trigger("reset");
$("#alertmessage").collapse('hide'); $("#alertmessage").collapse('hide');
$("#successmessage").html(reply.message).collapse('show'); $("#successmessage").html(reply.message).collapse('show');
}else{ }else{

View file

@ -58,7 +58,7 @@
$.post( "/ajax.php?action=add_featurerequest", $( "#request_form" ).serialize() ).done(function( data ) {; $.post( "/ajax.php?action=add_featurerequest", $( "#request_form" ).serialize() ).done(function( data ) {;
reply = JSON.parse(data); reply = JSON.parse(data);
if(reply.status == "ok"){ if(reply.status == "ok"){
$( "#lost_form" ).trigger("reset"); $( "#request_form" ).trigger("reset");
$("#alertmessage").collapse('hide'); $("#alertmessage").collapse('hide');
$("#successmessage").html(reply.message).collapse('show'); $("#successmessage").html(reply.message).collapse('show');
}else{ }else{