getNewStoryAndSubmit removes form and displays

main
anela 2 years ago
parent 287b626d07
commit bbc1b91b23

@ -79,6 +79,8 @@ async function getNewStoryAndSubmit(evt) {
$allStoriesList.prepend(newStoryMarkup);
//resets form with empty values
$addStoryForm.trigger("reset");
hidePageComponents();
$allStoriesList.show();
}
//event listener for add story form submit

Loading…
Cancel
Save