rough implementations of Moment and Essay creation and viewing completed.
This commit is contained in:
+1
-3
@@ -55,6 +55,7 @@ actionPost.addEventListener("click", () => {
|
||||
return response.json();
|
||||
})
|
||||
.then((data) => {
|
||||
console.log(data["html"]);
|
||||
openModal(data["html"]);
|
||||
|
||||
document.querySelector("#redirect").value = window.location.href;
|
||||
@@ -68,8 +69,6 @@ actionPost.addEventListener("click", () => {
|
||||
let newPostLabel = document.querySelector("#newPostLabel");
|
||||
let postType = document.querySelector("#postType");
|
||||
|
||||
let share = document.querySelector("#share");
|
||||
|
||||
newNavThought.addEventListener("click", () => {
|
||||
newMoment.style.display = "none";
|
||||
newEssay.style.display = "none";
|
||||
@@ -86,7 +85,6 @@ actionPost.addEventListener("click", () => {
|
||||
|
||||
newMoment.style.display = "flex";
|
||||
newPostLabel.innerText = "New Moment";
|
||||
newMoment.querySelector('input[type="text"]').focus();
|
||||
postType.value = "Moment";
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user