Add debugging for reply button click issue

This commit is contained in:
2026-01-30 23:49:21 -05:00
parent a8738fdf57
commit 6dff92db45
2 changed files with 5 additions and 1 deletions

View File

@@ -1232,6 +1232,7 @@ document.addEventListener('DOMContentLoaded', function() {
if (!target) return;
const action = target.dataset.action;
console.log('Action clicked:', action, 'Target:', target);
switch (action) {
case 'remove-dependency':
removeDependency(target.dataset.dependencyId);
@@ -1457,10 +1458,13 @@ function deleteComment(commentId) {
* Show reply form for a comment
*/
function showReplyForm(commentId, userName) {
console.log('showReplyForm called:', commentId, userName);
// Remove any existing reply forms
document.querySelectorAll('.reply-form-container').forEach(form => form.remove());
const commentDiv = document.querySelector(`.comment[data-comment-id="${commentId}"]`);
console.log('commentDiv found:', commentDiv);
if (!commentDiv) return;
const replyFormHtml = `