Skip to content

Commit

Permalink
Merge pull request #98 from mrk-j/fix-popup
Browse files Browse the repository at this point in the history
Prevent closePopup from running immediately
  • Loading branch information
freekmurze authored Sep 1, 2022
2 parents 8cccd8e + 2fd3920 commit ac5f44f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions resources/views/previewLinkPopup.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,16 @@
position: absolute;
top: 2px;
right: 6px;
font-family: monospace;">X</span>
font-family: monospace;
">
X
</span>
</div>
<script type="text/javascript">
function closePopup() {
document.body.removeChild(document.getElementById('MailPreviewDriverBox'));
}
@if($timeoutInSeconds)
setTimeout(closePopup(), {{ $timeoutInSeconds }} * 1000);
setTimeout(closePopup, {{ $timeoutInSeconds }} * 1000);
@endif
</script>

0 comments on commit ac5f44f

Please sign in to comment.