mirror of
https://github.com/overte-org/overte.git
synced 2025-04-21 08:04:01 +02:00
Merge pull request #3433 from birarda/master
fix presentation of checkboxes who default to true
This commit is contained in:
commit
4d4c7482b3
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>
|
||||
<div class="col-sm-10">
|
||||
<% 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" : "" %>>
|
||||
<% } else { %>
|
||||
<% if (setting.input_addon) { %>
|
||||
|
|
Loading…
Reference in a new issue