Skip to content

Commit

Permalink
removing double "append" statements
Browse files Browse the repository at this point in the history
  • Loading branch information
adkinsrs committed Aug 8, 2024
1 parent 5d2906c commit 69dae53
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 23 deletions.
17 changes: 0 additions & 17 deletions www/js/dataset_explorer.js
Original file line number Diff line number Diff line change
Expand Up @@ -893,8 +893,6 @@ const createDeleteDatasetConfirmationPopover = () => {
});
});

// Show popover
document.body.appendChild(popoverContent);

// Store the dataset ID to delete
const datasetIdToDelete = e.currentTarget.value;
Expand Down Expand Up @@ -1024,9 +1022,6 @@ const createRenameDatasetPermalinkPopover = () => {
});
});

// Show popover
document.body.appendChild(popoverContent);

const shareId = e.currentTarget.dataset.shareId;

document.getElementById("dataset-link-name").addEventListener("keyup", () => {
Expand Down Expand Up @@ -1159,9 +1154,6 @@ const createDeleteCollectionConfirmationPopover = () => {
});
});

// Show popover
document.body.appendChild(popoverContent);

// Add event listener to cancel button
document.getElementById('cancel-collection-delete').addEventListener('click', () => {
popoverContent.remove();
Expand Down Expand Up @@ -1287,9 +1279,6 @@ const createNewCollectionPopover = () => {
});
});

// Show popover
document.body.appendChild(popoverContent);

document.getElementById("collection-name").addEventListener("keyup", () => {
const newCollectionName = document.getElementById("collection-name");
const confirmAddCollection = document.getElementById("confirm-collection-add");
Expand Down Expand Up @@ -1420,9 +1409,6 @@ const createRenameCollectionPopover = () => {
});
});

// Show popover
document.body.appendChild(popoverContent);

document.getElementById("collection-name").addEventListener("keyup", () => {
const newCollectionName = document.getElementById("collection-name");
const confirmRenameCollection = document.getElementById("confirm-collection-rename");
Expand Down Expand Up @@ -1558,9 +1544,6 @@ const createRenameCollectionPermalinkPopover = () => {
});
});

// Show popover
document.body.appendChild(popoverContent);

document.getElementById("collection-link-name").addEventListener("keyup", () => {
const newLinkName = document.getElementById("collection-link-name");
const confirmRenameLink = document.getElementById("confirm-collection-link-rename");
Expand Down
6 changes: 0 additions & 6 deletions www/js/gene_list_manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -546,9 +546,6 @@ const createDeleteConfirmationPopover = () => {
});
});

// Show popover
document.body.appendChild(popoverContent);

// Store the gene list ID to delete
const gcIdToDelete = e.currentTarget.value;

Expand Down Expand Up @@ -683,9 +680,6 @@ const createRenamePermalinkPopover = () => {
});
});

// Show popover
document.body.appendChild(popoverContent);

const shareId = e.currentTarget.dataset.shareId;

document.getElementById("gc-link-name").addEventListener("keyup", () => {
Expand Down

0 comments on commit 69dae53

Please sign in to comment.