fix reset
This commit is contained in:
parent
935d48f6f7
commit
eadc4fe443
2 changed files with 2 additions and 2 deletions
|
@ -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{
|
||||
|
|
|
@ -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{
|
||||
|
|
Loading…
Reference in a new issue