fix: Alle Kabel Button submittet Formular automatisch
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
56a4e29621
commit
b4b8348c1f
1 changed files with 1 additions and 0 deletions
|
|
@ -363,6 +363,7 @@ if (!empty($cablesWithKupfer) && !empty($chartData['labels'])) {
|
||||||
print ' var checkboxes = document.querySelectorAll(\'input[name="cable_ids[]"]\');';
|
print ' var checkboxes = document.querySelectorAll(\'input[name="cable_ids[]"]\');';
|
||||||
print ' var allChecked = Array.from(checkboxes).every(cb => cb.checked);';
|
print ' var allChecked = Array.from(checkboxes).every(cb => cb.checked);';
|
||||||
print ' checkboxes.forEach(cb => cb.checked = !allChecked);';
|
print ' checkboxes.forEach(cb => cb.checked = !allChecked);';
|
||||||
|
print ' checkboxes[0].form.submit();';
|
||||||
print '}';
|
print '}';
|
||||||
print '</script>';
|
print '</script>';
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue