aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2020-09-28 03:12:56 +0200
committerHugo Hörnquist <hugo@lysator.liu.se>2020-09-28 03:12:56 +0200
commit6cf6a81d38ceeaedd122ebc97f88c8fca034b57e (patch)
treef53ec3377f108487b81f4bafb1861e23d50de210
parentGroundwork for adding new fields from frontend. (diff)
downloadcalp-6cf6a81d38ceeaedd122ebc97f88c8fca034b57e.tar.gz
calp-6cf6a81d38ceeaedd122ebc97f88c8fca034b57e.tar.xz
Add the sad sad boolean.
-rw-r--r--static/script.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/static/script.js b/static/script.js
index b94d0f2b..f5b137a3 100644
--- a/static/script.js
+++ b/static/script.js
@@ -728,6 +728,10 @@ window.onload = function () {
}));
break;
+ case 'boolean':
+ value.type = 'checkbox';
+ break;
+
case 'period':
value.type = 'text';
// TODO validate /P\d*H/ typ
@@ -790,6 +794,7 @@ let all_types = [
'utc-offset',
'cal-address',
'recur',
+ 'boolean',
]