mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 23:14:34 +02:00
fix presentation of checkboxes who default to true
This commit is contained in:
parent
e8f5c46589
commit
f1458dec3f
1 changed files with 1 additions and 1 deletions
|
@ -17,7 +17,7 @@
|
||||||
<label for="<%- setting_id %>" class="col-sm-2 control-label"><%- setting.label %></label>
|
<label for="<%- setting_id %>" class="col-sm-2 control-label"><%- setting.label %></label>
|
||||||
<div class="col-sm-10">
|
<div class="col-sm-10">
|
||||||
<% if (setting.type === "checkbox") { %>
|
<% if (setting.type === "checkbox") { %>
|
||||||
<% var checked_box = (values[group_key] || {})[setting_key] || setting.default %>
|
<% var checked_box = _.has(values, group_key) ? values[group_key][setting_key] : setting.default %>
|
||||||
<input type="checkbox" id="<%- setting_id %>" <%- checked_box ? "checked" : "" %>>
|
<input type="checkbox" id="<%- setting_id %>" <%- checked_box ? "checked" : "" %>>
|
||||||
<% } else { %>
|
<% } else { %>
|
||||||
<% if (setting.input_addon) { %>
|
<% if (setting.input_addon) { %>
|
||||||
|
|
Loading…
Reference in a new issue