getNewStoryAndSubmit removes form and displays

main
anela 3 years ago
parent 287b626d07
commit bbc1b91b23

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

Loading…
Cancel
Save