summaryrefslogtreecommitdiffstats
path: root/static/functions/collage.js
diff options
context:
space:
mode:
Diffstat (limited to 'static/functions/collage.js')
-rw-r--r--static/functions/collage.js21
1 files changed, 21 insertions, 0 deletions
diff --git a/static/functions/collage.js b/static/functions/collage.js
new file mode 100644
index 0000000..7863014
--- /dev/null
+++ b/static/functions/collage.js
@@ -0,0 +1,21 @@
+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 = "";
+} \ No newline at end of file