Skip to content

Commit

Permalink
Joomla popup destroy
Browse files Browse the repository at this point in the history
  • Loading branch information
Fedik committed Mar 12, 2023
1 parent 5b42c28 commit c9abff7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions build/media_source/system/js/joomla-popup.w-c.es6.js
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ class JoomlaPopup extends HTMLElement {
popup.popupContent = message;
popup.popupButtons = [{
label: Joomla.Text._('JOK', 'Okay'),
onClick: () => popup.close(),
onClick: () => popup.destroy(),
}];
popup.classList.add('joomla-popup-alert');
popup.addEventListener('joomla-popup:close', () => resolve());
Expand All @@ -391,14 +391,14 @@ class JoomlaPopup extends HTMLElement {
label: Joomla.Text._('JYES', 'Yes'),
onClick: () => {
result = true;
popup.close();
popup.destroy();
},
},
{
label: Joomla.Text._('JNO', 'No'),
onClick: () => {
result = false;
popup.close();
popup.destroy();
},
className: 'button btn btn-outline-primary',
},
Expand Down

0 comments on commit c9abff7

Please sign in to comment.