summaryrefslogtreecommitdiff
path: root/js/abmahn.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/abmahn.js')
-rw-r--r--js/abmahn.js13
1 files changed, 12 insertions, 1 deletions
diff --git a/js/abmahn.js b/js/abmahn.js
index 1b8d7c1..ed993fd 100644
--- a/js/abmahn.js
+++ b/js/abmahn.js
@@ -16,6 +16,10 @@ function setClass(id, classes) {
16 document.getElementById(id).className = classes; 16 document.getElementById(id).className = classes;
17} 17}
18 18
19function setSelection(id, selection) {
20 document.getElementById(id).value = selection;
21}
22
19function scrollTo(el) { 23function scrollTo(el) {
20 if(document.querySelectorAll === void 0 || window.pageYOffset === void 0 || history.pushState === void 0) { 24 if(document.querySelectorAll === void 0 || window.pageYOffset === void 0 || history.pushState === void 0) {
21 el.scrollIntoView(); 25 el.scrollIntoView();
@@ -143,8 +147,15 @@ function ausfuellen() {
143 setText('abmahnender_ort', 'München'); 147 setText('abmahnender_ort', 'München');
144 148
145 setText('vorgang_aktenzeichen', '16P99964sShA'); 149 setText('vorgang_aktenzeichen', '16P99964sShA');
146 setText('vorgang_datum', '10. 6. 2016');
147 150
151 setSelection('vorgang_datum_tag', '23' );
152 setSelection('vorgang_datum_monat', '5' );
153 setSelection('vorgang_datum_jahr', '2016' );
154
155 setSelection('tat_datum_tag', '17' );
156 setSelection('tat_datum_monat', '1' );
157 setSelection('tat_datum_jahr', '2016' );
158 setSelection('tat_datum_zeit', '20:45' );
148} 159}
149 160
150function abmahnbeantworter() { 161function abmahnbeantworter() {