Spickerrrrrrrrrrr!

Check-in [a569490d4b]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Bugfix beim Reset von Parteitagen
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: a569490d4b06b00723b9980609e8fdf981576d31f0baef3a8fad7b32775d045d
User & Date: Cthulhux 2019-09-05 00:36:24
Context
2019-09-05
00:37
panic() entschärft check-in: 1c18cef17d user: Cthulhux tags: trunk
00:36
Bugfix beim Reset von Parteitagen check-in: a569490d4b user: Cthulhux tags: trunk
00:19
Update: Fix für Autorenlinks check-in: f5e1b873b4 user: Cthulhux tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to public/base.js.

37
38
39
40
41
42
43





44
45
46
47
48
49
50
    let selParteitag = document.getElementById("parteitage");
    let selAntrag = document.getElementById("antraege");
    
    fetch("Parteitag/" + selParteitag.value,
        { method: "POST" })
    .then(res => res.json())
    .then(data => {





        let dummyoption = document.createElement("option");
        dummyoption.value = "dummy";
        dummyoption.innerHTML = "- bitte auswählen -";
        selAntrag.appendChild(dummyoption);
        
        data.forEach(antrag => {
            /* Antrag in Selectbox füllen: */







>
>
>
>
>







37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
    let selParteitag = document.getElementById("parteitage");
    let selAntrag = document.getElementById("antraege");
    
    fetch("Parteitag/" + selParteitag.value,
        { method: "POST" })
    .then(res => res.json())
    .then(data => {
        // Anträge zurücksetzen vorm Neubefüllen:
        while (selAntrag.firstChild) {
            selAntrag.removeChild(selAntrag.firstChild);
        }

        let dummyoption = document.createElement("option");
        dummyoption.value = "dummy";
        dummyoption.innerHTML = "- bitte auswählen -";
        selAntrag.appendChild(dummyoption);
        
        data.forEach(antrag => {
            /* Antrag in Selectbox füllen: */