Bernd Wurst commited on 2023-04-28 13:55:45
Zeige 2 geänderte Dateien mit 16 Einfügungen und 1 Löschungen.
... | ... |
@@ -61,6 +61,21 @@ function showktoblz( event ) { |
61 | 61 |
} |
62 | 62 |
|
63 | 63 |
|
64 |
+// Define a convenience method and use it |
|
65 |
+var ready = (callback) => { |
|
66 |
+ if (document.readyState != "loading") callback(); |
|
67 |
+ else document.addEventListener("DOMContentLoaded", callback); |
|
68 |
+} |
|
69 |
+ |
|
70 |
+ready(() => { |
|
71 |
+ /* Do things after DOM has fully loaded */ |
|
72 |
+ |
|
73 |
+ document.querySelector("#gueltig_ab_datum").addEventListener("change", (e) => { |
|
74 |
+ document.querySelector("#gueltig_ab_auswahl").checked = true; |
|
75 |
+ }) |
|
76 |
+}); |
|
77 |
+ |
|
78 |
+ |
|
64 | 79 |
$(function() { |
65 | 80 |
$('#iban').on("change keyup paste", searchbank ); |
66 | 81 |
$("#copydata").click(copydata); |
... | ... |
@@ -58,7 +58,7 @@ if ($first_date != date('Y-m-d')) { |
58 | 58 |
$html .= '<p><input type="radio" id="gueltig_ab_'.$first_date.'" name="gueltig_ab" value="'.$first_date.'" checked="checked" /><label for="gueltig_ab_'.$first_date.'">Dieses Mandat gilt <strong>ab '.$first_date.'</strong> (Alle bisher offenen Forderungen werden ebenfalls abgebucht)</label></p>'; |
59 | 59 |
} |
60 | 60 |
$html .= '<p><input type="radio" id="gueltig_ab_heute" name="gueltig_ab" value="'.date('Y-m-d').'" '.($checked ? '' : 'checked="checked"').' /><label for="gueltig_ab_heute">Dieses Mandat gilt <strong>ab heute</strong> ('.date('Y-m-d').')</label></p>'; |
61 |
-$html .= '<p><input type="radio" id="gueltig_ab_datum" name="gueltig_ab" value="datum" /><label for="gueltig_ab_datum">Dieses Mandat gilt <strong>erst ab</strong></label> '.html_datepicker("gueltig_ab_datum", time()).'</p>'; |
|
61 |
+$html .= '<p><input type="radio" id="gueltig_ab_auswahl" name="gueltig_ab" value="datum" /><label for="gueltig_ab_datum">Dieses Mandat gilt <strong>erst ab</strong></label> '.html_datepicker("gueltig_ab_datum", time()).'</p>'; |
|
62 | 62 |
|
63 | 63 |
$html .= '<h4>Ihre Bankverbindung</h4>'; |
64 | 64 |
$html .= '<table> |
65 | 65 |