i clicked add relative. a window popped up and i clicked add sibling. that window disappeared out of view and im back on the member details popup - Follow Up Deployment
Browse files- index.html +8 -4
index.html
CHANGED
|
@@ -536,22 +536,26 @@
|
|
| 536 |
|
| 537 |
modal.querySelector('.add-parent').addEventListener('click', () => {
|
| 538 |
document.body.removeChild(modal);
|
| 539 |
-
|
|
|
|
| 540 |
});
|
| 541 |
|
| 542 |
modal.querySelector('.add-spouse').addEventListener('click', () => {
|
| 543 |
document.body.removeChild(modal);
|
| 544 |
-
|
|
|
|
| 545 |
});
|
| 546 |
|
| 547 |
modal.querySelector('.add-child').addEventListener('click', () => {
|
| 548 |
document.body.removeChild(modal);
|
| 549 |
-
|
|
|
|
| 550 |
});
|
| 551 |
|
| 552 |
modal.querySelector('.add-sibling').addEventListener('click', () => {
|
| 553 |
document.body.removeChild(modal);
|
| 554 |
-
|
|
|
|
| 555 |
});
|
| 556 |
}
|
| 557 |
|
|
|
|
| 536 |
|
| 537 |
modal.querySelector('.add-parent').addEventListener('click', () => {
|
| 538 |
document.body.removeChild(modal);
|
| 539 |
+
personDetailsModal.classList.add('hidden');
|
| 540 |
+
setTimeout(() => showAddPersonModal(personId, 'parent'), 10);
|
| 541 |
});
|
| 542 |
|
| 543 |
modal.querySelector('.add-spouse').addEventListener('click', () => {
|
| 544 |
document.body.removeChild(modal);
|
| 545 |
+
personDetailsModal.classList.add('hidden');
|
| 546 |
+
setTimeout(() => showAddPersonModal(personId, 'spouse'), 10);
|
| 547 |
});
|
| 548 |
|
| 549 |
modal.querySelector('.add-child').addEventListener('click', () => {
|
| 550 |
document.body.removeChild(modal);
|
| 551 |
+
personDetailsModal.classList.add('hidden');
|
| 552 |
+
setTimeout(() => showAddPersonModal(personId, 'child'), 10);
|
| 553 |
});
|
| 554 |
|
| 555 |
modal.querySelector('.add-sibling').addEventListener('click', () => {
|
| 556 |
document.body.removeChild(modal);
|
| 557 |
+
personDetailsModal.classList.add('hidden');
|
| 558 |
+
setTimeout(() => showAddPersonModal(personId, 'sibling'), 10);
|
| 559 |
});
|
| 560 |
}
|
| 561 |
|