Skip to content

Commit

Permalink
restructure for channel
Browse files Browse the repository at this point in the history
  • Loading branch information
jmort1021 committed Nov 2, 2024
1 parent 86ddca2 commit ac5ed47
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion navigation/authentication/history.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ search_exclude: true
<h3>${postItem.title}</h3>
<p><strong>Channel:</strong> ${postItem.channel_name}</p>
<p><strong>User:</strong> ${postItem.user_name}</p>
<p>${postItem.content}</p>
<p>${postItem.comment}</p>
`;
detailsDiv.appendChild(postElement);
});
Expand Down
8 changes: 4 additions & 4 deletions navigation/authentication/post.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ search_exclude: true
<form id="postForm">
<label for="title">Title:</label>
<input type="text" id="title" name="title" required>
<label for="content">Content:</label>
<textarea id="content" name="content" required></textarea>
<label for="comment">comment:</label>
<textarea id="comment" name="comment" required></textarea>
<label for="channel_id">Channel:</label>
<select id="channel_id" name="channel_id" required>
<option value="">Select a channel</option>
Expand Down Expand Up @@ -92,13 +92,13 @@ search_exclude: true

// Extract data from form
const title = document.getElementById('title').value;
const content = document.getElementById('content').value;
const comment = document.getElementById('cchannelontent').value;
const channel_id = document.getElementById('channel_id').value;

// Create API payload
const postData = {
title: title,
content: content,
comment: comment,
channel_id: channel_id
};

Expand Down

0 comments on commit ac5ed47

Please sign in to comment.