summaryrefslogtreecommitdiff
path: root/src/client/app/common/scripts
diff options
context:
space:
mode:
authorsyuilo <Syuilotan@yahoo.co.jp>2019-07-10 18:30:51 +0900
committersyuilo <Syuilotan@yahoo.co.jp>2019-07-10 18:30:51 +0900
commitfeec5e88fcb0b0d89931dba1c2032ea315b553bf (patch)
tree73f336c4053a57f71e91e28500eb6f7029330a6f /src/client/app/common/scripts
parentFix drive browser showing false empty (#5127) (diff)
downloadsharkey-feec5e88fcb0b0d89931dba1c2032ea315b553bf.tar.gz
sharkey-feec5e88fcb0b0d89931dba1c2032ea315b553bf.tar.bz2
sharkey-feec5e88fcb0b0d89931dba1c2032ea315b553bf.zip
Pages: Implement radio button
Diffstat (limited to 'src/client/app/common/scripts')
-rw-r--r--src/client/app/common/scripts/collect-page-vars.ts6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/client/app/common/scripts/collect-page-vars.ts b/src/client/app/common/scripts/collect-page-vars.ts
index 4c40d5d88e..a4096fb2c2 100644
--- a/src/client/app/common/scripts/collect-page-vars.ts
+++ b/src/client/app/common/scripts/collect-page-vars.ts
@@ -32,6 +32,12 @@ export function collectPageVars(content) {
type: 'number',
value: 0
});
+ } else if (x.type === 'radioButton') {
+ pageVars.push({
+ name: x.name,
+ type: 'string',
+ value: x.default || ''
+ });
} else if (x.children) {
collect(x.children);
}