bugfix chackboxu

This commit is contained in:
David Brazda
2023-11-30 14:41:43 +01:00
parent 95cd7ead8a
commit d06faa4c9b
2 changed files with 2 additions and 2 deletions

View File

@ -851,7 +851,7 @@
<!-- tady zacina polska docasna lokalizace -->
<!-- <script type="text/javascript" src="https://unpkg.com/lightweight-charts/dist/lightweight-charts.standalone.production.js"></script> -->
<script type="text/javascript" src="/static/js/libs/lightweightcharts/lightweight-charts.standalone.production410.js"></script>
<script src="/static/js/dynamicbuttons.js?v=1.02"></script>
<script src="/static/js/dynamicbuttons.js?v=1.03"></script>
<!-- <script src="/static/js/utils.js?v=1.01"></script> -->

View File

@ -276,7 +276,7 @@ function populate_dynamic_buttons(targetElement, config, batch_id = null) {
// Stop the event from propagating to parent elements
event.stopPropagation();
// Check if the clicked element or any of its parents is a submit button
if (!$(event.target).closest('input[type="submit"], button[type="submit"]').length) {
if (!$(event.target).closest('input[type="submit"], button[type="submit"], input[type="checkbox"]').length) {
// Stop the event from propagating to parent elements
event.preventDefault();
}