You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am opening the log-tail page in modal window using bootstrap.
Problem is that even if the modal window is closed and even if I used to remove data from closed modal by following script which works for all my modal windows opened by link the script to seems stay active and still invoking ajax to the log file:
<script type="text/javascript">
$('.modal').on('hidden.bs.modal', function () {
$(this).removeData('bs.modal');
});
</script>
Please advise solution.
Thanks, Reddy
The text was updated successfully, but these errors were encountered:
Well, logtail.js kind of assumes it owns the page in more ways than just that: it tries to scroll the whole page, it adds a global window.onerror handler, etc. So the way I see it, you have two options:
change the scrolling behaviour, make it only catch its own exceptions, don't call get_log on page load, and---to address your specific question---add the event handler for hiding the modal that sets the "kill" variable to true (then add a handler for showing the modal that unsets kill, resets the variables, and calls get_log)
Hello,
I am opening the log-tail page in modal window using bootstrap.
Problem is that even if the modal window is closed and even if I used to remove data from closed modal by following script which works for all my modal windows opened by link the script to seems stay active and still invoking ajax to the log file:
Please advise solution.
Thanks, Reddy
The text was updated successfully, but these errors were encountered: