Add debugging for reply button click issue
This commit is contained in:
@@ -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 = `
|
||||
|
||||
Reference in New Issue
Block a user