···11/* Functions that are mostly used on the application side of things */
22function getPostListElement(itemID) {
33- return document.getElementById(`postBase${itemID}`);
33+ return document.getElementById(`post-${itemID}`);
44}
5566function formatDate(date) {
···11-11+// Buttons for post header tags
22export function AddPostToThreadButton() {
33 return (
44 <button class="addThreadPost btn-sm primary outline" data-tooltip="Add a post to thread"
···1919 hx-trigger="click once"
2020 title="Click to edit post content"
2121 hx-get={`/post/edit/${id}`}
2222- hx-target={`#post${id}`}
2222+ hx-target={`#content-${id}`}
2323 hx-swap={`innerHTML show:#editPost${id}:top"`}>
2424 <img src="/icons/edit.svg" alt="edit icon" width="20px" height="20px" />
2525 </button>
···3232}
33333434export function DeletePostButton(props: DeletePostProps) {
3535- const deleteTargetId = `#postBase${props.id}`;
3535+ const deleteTargetId = `#post-${props.id}`;
3636 const postType = props.isRepost ? "repost" : "post";
3737 const deleteTarget = props.child ? `blockquote:has(${deleteTargetId})` : deleteTargetId;
3838 return (
+1-1
src/utils/appScripts.ts
···11// Change this value to break out of any caching that might be happening
22// for the runtime scripts (ex: main.js & postHelper.js)
33-export const CURRENT_SCRIPT_VERSION: string = "1.5.5";
33+export const CURRENT_SCRIPT_VERSION: string = "1.5.6";
4455export const getAppScriptStr = (scriptName: string) => `/js/${scriptName}.min.js?v=${CURRENT_SCRIPT_VERSION}`;
66