Skip to content

Commit

Permalink
Test fix bootstrap modal
Browse files Browse the repository at this point in the history
  • Loading branch information
MaertHaekkinen committed Sep 13, 2023
1 parent d54d9e0 commit d53bce4
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions ajapaik/ajapaik/templates/core/base_bootstrap.html
Original file line number Diff line number Diff line change
Expand Up @@ -233,19 +233,6 @@
f.parentNode.insertBefore(j, f);
})(window, document, 'script', 'dataLayer', 'GTM-TQJJQH');</script>
<!-- End Google Tag Manager -->
<script>
// Fix for usage of multiple bootstrap modals, as multiple modals is not supported by bootstrap.
$('.modal').on('hidden.bs.modal', function() {
if ($('.modal:visible').length) {
$('body').addClass('modal-open');
}
});
$('#ajp-photo-modal').on('hidden.bs.modal', function(e) {
if (e.target.id === 'ajp-photo-modal') {
$('#ajp-photo-modal').html('');
}
});
</script>
<!-- compress js -->
<!--[if lt IE 9]>
<script src="{% static 'js/html5shiv-3.7.3.js' %}"></script>
Expand Down Expand Up @@ -274,6 +261,19 @@
<script src="{% static "js/jquery-ui.min.js" %}"></script>
<script src="{% static "js/popper.min.js" %}"></script>
<script src="{% static "libs/bootstrap/js/bootstrap.min.js" %}"></script>
<script>
// Fix for usage of multiple bootstrap modals, as multiple modals is not supported by bootstrap.
$('.modal').on('hidden.bs.modal', function() {
if ($('.modal:visible').length) {
$('body').addClass('modal-open');
}
});
$('#ajp-photo-modal').on('hidden.bs.modal', function(e) {
if (e.target.id === 'ajp-photo-modal') {
$('#ajp-photo-modal').html('');
}
});
</script>
<!-- endcompress -->
</head>
<body
Expand Down

0 comments on commit d53bce4

Please sign in to comment.