Skip to content

Commit

Permalink
Modal can be missed (#38906)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlterBrains committed Oct 7, 2022
1 parent 11c7f07 commit 00813e7
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,10 @@ const initRunner = () => {
window.location.href = `${paths ? `${paths.base}/index.php` : window.location.pathname}?option=com_scheduler&view=tasks`;
};

modal.addEventListener('show.bs.modal', triggerTaskAndShowOutput);
modal.addEventListener('hidden.bs.modal', reloadOnClose);
if (modal) {
modal.addEventListener('show.bs.modal', triggerTaskAndShowOutput);
modal.addEventListener('hidden.bs.modal', reloadOnClose);
}
document.removeEventListener('DOMContentLoaded', initRunner);
};

Expand Down

0 comments on commit 00813e7

Please sign in to comment.