mirror of
https://github.com/WhatCD/Gazelle.git
synced 2024-12-13 19:06:27 +00:00
21 lines
499 B
JavaScript
21 lines
499 B
JavaScript
function Add(input) {
|
|
if(input.checked == false) {
|
|
Cancel();
|
|
} else {
|
|
if(document.getElementById("choices").raw().value == "") {
|
|
document.getElementById("choices").raw().value += input.name;
|
|
} else {
|
|
document.getElementById("choices").raw().value += "|" + input.name;
|
|
}
|
|
}
|
|
}
|
|
|
|
function Cancel() {
|
|
var e=document.getElementsByTagName("input");
|
|
for(i=0;i<e.length;i++){
|
|
if(e[i].type=="checkbox"){
|
|
e[i].checked=false;
|
|
}
|
|
}
|
|
document.getElementById("choices").raw().value = "";
|
|
} |