summaryrefslogtreecommitdiff
blob: 7dd3951bb6e3ab10aa48819fbd063da4a1504c02 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
function togglePrefix(){
    if(document.getElementById('prefix').value == ''){
        document.getElementById('token').value = "";
        document.getElementById('token').disabled = true;
        document.getElementById('token').placeholder = "Only available for prefix != '/'";
        document.getElementById('index').value = "no";
        document.getElementById('index').disabled = true;
    }else{
        document.getElementById('token').disabled = false;
        document.getElementById('token').placeholder = "Automatically generated if empty";
        document.getElementById('index').disabled = false;
    }
}