diff options
author | erdgeist <erdgeist@bauklotz.fritz.box> | 2016-08-08 22:50:59 +0200 |
---|---|---|
committer | erdgeist <erdgeist@bauklotz.fritz.box> | 2016-08-08 22:50:59 +0200 |
commit | 1a209d92a281cab76fc1d1d0fa2ba9ef4edc93d2 (patch) | |
tree | 8d39cd9f62dcbfcfb465c104e1004243ac0973b2 | |
parent | ebf46e8b64e983d9c50bbfdc7dbdf2a37625e7b9 (diff) |
Add setters for select boxes
-rw-r--r-- | js/abmahn.js | 13 |
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 | ||
19 | function setSelection(id, selection) { | ||
20 | document.getElementById(id).value = selection; | ||
21 | } | ||
22 | |||
19 | function scrollTo(el) { | 23 | function 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 | ||
150 | function abmahnbeantworter() { | 161 | function abmahnbeantworter() { |